- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, my friends developers.
I need your help. Need to setting Eclipse to MKL. I use your help:http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/mklxe/mkl_userguide_lnx/index.htm
But after settings Eclipse out some errors:
ld: cannot find -l/home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_intel_thread.a
ld: cannot find -l/home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_core.a
ld: cannot find -l/home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_intel.a
ld: cannot find -l/home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_intel_thread.ald: cannot find -l/home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_core.ald: cannot find -l/home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_intel.aFrom your article I can't do
"For Managed Make projects, you can specify settings for a particular build. To do this:..."
Thank u for help.
Link Copied
11 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Evgeny,
The dash-ell options (-lxxx) should receive the name of the library less the "lib" prefix and suffix, i.e. should look like -lmkl_intel_thread -lmkl_core and so on. The path should go to dash-cap-ell option (-L). User guide says about this:
Specify the names of the Intel MKL libraries to link with your application, for example, mkl_intel_lp64, mkl_intel_thread_lp64, mkl_core, and iomp5 (compilers typically require library names rather than library file names, so omit the "lib" prefix and "a" extension).
The dash-ell options (-lxxx) should receive the name of the library less the "lib" prefix and suffix, i.e. should look like -lmkl_intel_thread -lmkl_core and so on. The path should go to dash-cap-ell option (-L). User guide says about this:
Thanks
Dima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where I should write iomp5 in Eclipse?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let's I write my setting step by step, and u will correct my acts.
1. Go toC/C++ General>Paths and Symbols>Includesand set the Intel Math Kernel Library (Intel MKL) include path, that is, /home/evgeny/Soft/IntelParallelStudio/mkl/include
2.Go toC/C++ Build>Settings>Tool Settings, and add to Additional Libraries(-l) three libraries:
- /home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_intel.a
- /home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_intel_thread.a
- /home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_core.a
- /home/evgeny/Soft/IntelParallelStudio/mkl/lib/ia32/libmkl_intel.a
After that I don't understand, what I should do next step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't have an installation of Eclipse that I could use follow your steps.
In the "Additional libraries (-l)" you should add this, instead of what you shown:
mkl_intel
mkl_intel_thread
mkl_core
Here you could also add iomp5
The "Library search directory (-L)" looks set correctly. You should probably also add the path to compiler libraries here as well:
/home/evgeny/Soft/IntelParallelStudio/compiler/lib/ia32
or
/home/evgeny/Soft/IntelParallelStudio/lib/ia32
Alternatively, ifIntel compiler is used as linker, then adding linker options -mkl and -openmp should do the work. The former adds necessary libraries and locates them in proper places of your installation of Parallel Studio. The latter one does the same with repect to OpenMP runtime (i.e. iomp5).
Dima
In the "Additional libraries (-l)" you should add this, instead of what you shown:
mkl_intel
mkl_intel_thread
mkl_core
Here you could also add iomp5
The "Library search directory (-L)" looks set correctly. You should probably also add the path to compiler libraries here as well:
/home/evgeny/Soft/IntelParallelStudio/compiler/lib/ia32
or
/home/evgeny/Soft/IntelParallelStudio/lib/ia32
Alternatively, ifIntel compiler is used as linker, then adding linker options -mkl and -openmp should do the work. The former adds necessary libraries and locates them in proper places of your installation of Parallel Studio. The latter one does the same with repect to OpenMP runtime (i.e. iomp5).
Dima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank u for an answer, but I have an error, when try to run the application.
error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory
I try change directories, where found thelibiomp5.so, but it isn't helpfull.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please add this dir to the LD_LIBRARY_PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the LD_LIBRARY_PATH? Where I should find it, because in my file system I haven't that file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
LD_LIBRARY_PATH environment variable is set correctly for the OpenMP library by source'ing the compilervars script with current Intel compiler installations, or the mklvars script in some past versions of MKL.
It's the usual method in Unix-like systems for adding paths to search for shared libraries; the ldconfig method may be available as an alternative.
It's the usual method in Unix-like systems for adding paths to search for shared libraries; the ldconfig method may be available as an alternative.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try to write in console "source LD_LIBRARY_PATH /home/evgeny/Soft/IntelParallelStudio/lib/ia32" and I see
bash:LD_LIBRARY_PATH: No such file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you don't want to source a provided script, such as the compilervars.sh script in the current releases, you simply put the path in LD_LIBRARY_PATH e.g.:
export LD_LIBRARY_PATH=/home/evgeny/Soft/IntelParallelStudio/lib/ia32
If that's the directory where your .so resides, and you use an sh compatible shell.
export LD_LIBRARY_PATH=/home/evgeny/Soft/IntelParallelStudio/lib/ia32
If that's the directory where your .so resides, and you use an sh compatible shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
LD_LIBRARY_PATH is not a file; it is an environment variable that must be set properly for executables produced by the Intel compiler to work properly. Please type the command (do not type the first '$' yourself; it stands for whatever the command prompt string is on your system)
$ echo $LD_LIBRARY_PATH
and report the output.
To set LD_LIBRARY_PATH to the path that you gave, the command is
$ export LD_LIBRARY_PATH=/home/evgeny/Soft/IntelParallelStudio/lib/ia32
$ echo $LD_LIBRARY_PATH
and report the output.
To set LD_LIBRARY_PATH to the path that you gave, the command is
$ export LD_LIBRARY_PATH=/home/evgeny/Soft/IntelParallelStudio/lib/ia32
![](/skins/images/7B0AB6865064EAE32B30EC9A4E94B48A/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page