- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi MKL users,
I don't know how to link my program to MKL package. I want to use two libraries, lapack and pardiso, in MKL and try to link it to my program with the following command:
ifort -i8 -o prog prog.f -L /MKL path/ -I /INCLUDE path -Wl,--start-group -lmkl_intel_ilp64.a -lmkl_intel_thread.a -lmkl_solver_ilp64.a -lmkl_lapack.a -Wl
,--end-group -lguide -lpthread -lm&
But obtain the following error:
ld: cannot find -lmkl_intel_ilp64.a
I also set environment variables in ./bashrc, .bash_profile and .profile files, such as PATH, LIB, INCLUDE.
Could someone tell me what is wrong in detail? I am not very familiar with those stuffs. Thanks in advance.
Wen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wen,
Please make sure the path /MKL path/ you are using in the link line does contain the required libraries (e.g. libmkl_intel_ilp64.a or libmkl_intel_ilp64.so). Usually such paths look like this:
/opt/mkl100/lib/em64t
Best regards,
-Vladimir
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wen,
Please make sure the path /MKL path/ you are using in the link line does contain the required libraries (e.g. libmkl_intel_ilp64.a or libmkl_intel_ilp64.so). Usually such paths look like this:
/opt/mkl100/lib/em64t
Best regards,
-Vladimir

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page