Community
cancel
Showing results for 
Search instead for 
Did you mean: 
kirankumarm
Beginner
171 Views

Error when running the example

Hi All,
I have just now installed MKL on my linux machine.
I'm using "Intel Core2 Duo CPU E7500 @ 2.93GHz " processor.


When I'm running example with the following command

gcc -w -I/opt/intel/mkl/10.2.5.035/include source/cspblas_sbsr.c -L/opt/intel/mkl/10.2.5.035/lib/em64t /opt/intel/mkl/10.2.5.035/lib/em64t/libmkl_solver_lp64.a -Wl,--start-group -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -lpthread

I'm getting the error

http://pastebin.com/SL7Auu3i

Please let me know where I'm going wrong.

Regards,
M.Kiran Kumar.

0 Kudos
9 Replies
kirankumarm
Beginner
171 Views

Hi All,
When I'm running a sample test program I'm getting errors.

I gave the following optiions to the link advisor

os --- linux os
processor architecture --- intel 64
compiler --- gnu c
linking --- static
integers length --- 32-bit (lp64)
multi-threaded version of Intel@MKL
openmp --- library gnu (libgomp)
cluster library --- blacs
mpi library --- mpich2

The command I ran the test program with

gcc test.c /opt/intel/mkl/10.2.5.035/lib/em64t/libmkl_solver_lp64.a -Wl,--start-group /opt/intel/mkl/10.2.5.035/lib/em64t/libmkl_intel_lp64.a /opt/intel/mkl/10.2.5.035/lib/em64t/libmkl_gnu_thread.a /opt/intel/mkl/10.2.5.035/lib/em64t/libmkl_core.a /opt/intel/mkl/10.2.5.035/lib/em64t/libmkl_blacs_intelmpi_lp64.a -Wl,--end-group -fopenmp -lpthread

If anyone has any clue about the errors please do reply and help me get started with mkl.

I'm posting the sample test program in this site.

http://pastebin.com/vbQ2Gcu6

I'm posting the errors in the following site.

http://pastebin.com/UqUHLYAh

Regards,
M.Kiran Kumar.

Gennady_F_Intel
Moderator
171 Views

Hi Kiran,
looking at the error log:http://pastebin.com/SL7Auu3i

1. /usr/bin/ld: skipping incompatible /opt/intel/mkl/10.2.5.035/lib/em64t/libmkl_intel_lp64.so when searching for -lmkl_intel_lp64

2. /usr/bin/ld: skipping incompatible /opt/intel/mkl/10.2.5.035/lib/em64t/libmkl_intel_lp64.a when searching for -lmkl_intel_lp64

3. /usr/bin/ld: /opt/intel/mkl/10.2.5.035/lib/64/libmkl_intel_lp64.so: warning: sh_link not set for section `.IA_64.unwind'

4. /usr/bin/ld: skipping incompatible /opt/intel/mkl/10.2.5.035/lib/64/libmkl_intel_lp64.so when searching for -lmkl_intel_lp64

contains links to the IA64 bits libraries ( aka Itanium ) but your system isIntel Core2 Duo CPU (Intel 64 ).

--Gennady

kirankumarm
Beginner
171 Views

Hi Gennady,
Once see my second post in this thread also(http://software.intel.com/en-us/forums/showpost.php?p=125031).

The installation process was simple and then i used this link line advisor. So I think I'm not doing any mistake. What could be the possible error and what should I do..?

Regards,
M.Kiran Kumar.
mecej4
Black Belt
171 Views

Are you running 32-bit Linux or 64-bit Linux? What version of gcc do you use? Does it produce 32-bit or 64-bit a.out files by default? Why do you have Itanium (IA64) libraries installed, and what do you want to do with those?

Some combinations of platforms (development vs. deployment) may work, but we need to be very clear about how things are set up.
kirankumarm
Beginner
171 Views


Hi mecej4,
I'm using 32 bit linux, and gcc produces 32 bit files by default. I have no use with IA64 libraries, When I was installing mkl they also got installed.

uname -a gives output as
Linux localhost.localdomain 2.6.29.4-167.fc11.i686.PAE #1 SMP Wed May 27 17:28:22 EDT 2009 i686 i686 i386 GNU/Linux

gcc version

gcc (GCC) 4.4.0 20090506 (Red Hat 4.4.0-4)

So what should I do now..?

Regards,
M.Kiran Kumar.


barragan_villanueva_
Valued Contributor I
171 Views

Hi,

You should try again Intel MKL Link Line Advisorand correctly select your configuration and use suggested line to link with MKL libraries.
Becuase you used em64t directories while you have 32-bit application :(
Please try:
processor architecture --- IA32
instead of
processor architecture --- intel 64

Gennady_F_Intel
Moderator
171 Views

I'd add 2 my cents to Victor's comment -:).Kiran, please look at this article "what do IA32, intel64 and IA64 Architecture means" may be you will find it useful.
--Gennady
kirankumarm
Beginner
171 Views

Hi Gennady and Victor,
Yay!! I changed it to IA32 and it works now.

My cpu model name has "Intel Core2 Duo CPU", so it thought it as Intel 64.

Thanks once again,

Regards,
M.Kiran Kumar.
mecej4
Black Belt
171 Views

Good for you.

To claim Intel/AMD-64 as the platform, you need (i) an X64 capable CPU (which you do) AND (ii) a 64-bit OS (which you do not). Therefore, architecture=x86 or IA32 for your case.
Reply