- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi every one,
I would like to use the lapack library with my intel project in eclipse.
my source code is:
PROGRAM testLapack_CGEEV
USE COMUNI
use mkl95_lapack
IMPLICIT NONE
..........
but I have the following error:
Invoking: Intel Intel 64 Fortran Compiler
ifort -g -O0 -c -o "testLapack_CGEEV.o" "../testLapack_CGEEV.f90"
../testLapack_CGEEV.f90(3): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL95_LAPACK]
use mkl95_lapack
----^
compilation aborted for ../testLapack_CGEEV.f90 (code 1)
make: *** [testLapack_CGEEV.o] Error 1
I do not understand why. All the librarymkl seem included in the project wiew.
thanks a lot
Link Copied
9 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not familiar with the Eclipse environment, but you need to make sure that the appropriate MKL Include folder is provided to the compiler as an additional INCLUDE directory (-I). This is the folder where you will find mkl95_lapack.mod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since you did not mention whether you are using the current version of MKL, this may be worth looking at:
Older versions of MKL came with source files and a makefile to build Lapack95 and Blas95; you had to build the modules and libraries, and install the resulting files in appropriate places.
Pre-built modules and libraries were also provided in later versions of MKL.
With any version of MKL, you need to ask the linker to include the lapack95 and/or blas95 libraries.
Older versions of MKL came with source files and a makefile to build Lapack95 and Blas95; you had to build the modules and libraries, and install the resulting files in appropriate places.
Pre-built modules and libraries were also provided in later versions of MKL.
With any version of MKL, you need to ask the linker to include the lapack95 and/or blas95 libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
thank for your reply.
I am using the new version ak MKL
how can I ask the linker to includeapack95 and/or blas95
because I have putlapack95.mod in my folder and the program seems to compile. I have still the problem with some variables.
I would like to do in a more general way
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
thank for your reply.
I am using the new version ak MKL
how can I ask the linker to includeapack95 and/or blas95
because I have putlapack95.mod in my folder and the program seems to compile. I have still the problem with some variables.
I would like to do in a more general way
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Copying the .mod is not the best solution. Instead you should, as I mentioned, add the MKL includes folder to the compiler include path.
MKL offers a link advisor tool which can help you select the libraries you should reference in your build.
MKL offers a link advisor tool which can help you select the libraries you should reference in your build.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
you are right moreover it does not work
I have changed my path with:
[bash]PATH="/opt/intel/compilerpro-12.0.0.084/bin/intel64$PATH" source /opt/intel/compilerpro-12.0.0.084/bin/ifortvars.sh intel64 export LD_LIBRARY_PATH=/opt/intel/compilerpro-12.0.0.084/debugger/lib/intel64:$LD_LIBRARY_PATH export PATH LD_LIBRARY_PATH="/opt/intel/lib:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH[/bash]
and if I run a preogram test it works
[bash]ifort --llpack test.f90[/bash]
Can I do the same with mlk
for example ifort -mlk
because I am not able to use link advisor tool
thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are not changing the path that the linker uses for locating libraries. Using -mkl will cause specific sets of MKL libraries to be linked in, and if you have your environment set up properly, it will find the MKL libraries. I can't comment on how this would be done from Eclipse.
If you need more help on using MKL, please ask in our MKL forum section.
If you need more help on using MKL, please ask in our MKL forum section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Photran, the Intel Fortran tool chain is represented as two steps, a compile step and a link step. If you add '-mkl' to your compile step in the 'Command Line' -> 'Additional options' property, you also need to add it on the link step in the same category/property. Both the Intel Fortran Compile step and Intel Fortran Link stepinvoke the ifort driver, but setting an additional command line option on the compile stepdoes not automatically cause the option to be passed to the link step.
Hope that helps...Bill
Hope that helps...Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
thanks a lot.
you are right.
In eclipse I have put in the linker all the library that I use in the compilare:
-llapack95 ecc...

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