- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL_DFTI]
My command is:
ifort -I/opt/intel/Compiler/11.0/083/mkl/include -o procsl procsl.f90 -L/opt/intel/Compiler/11.0/083/mkl/lib/em64t/ -lmkl_core
When using my own modules, I always use -module
I'm sure this is a simple fix, but I can't find it anywhere in the documentation or this forum. Any help would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
MKL did not provide precompiled .mod files because they are compiler dependent. Even if they were compiled with one version of Intel ifort, they won't be compatible with another, not to say about other compilers that MKL supports. Moreover, on64-bit systems MKLsupports LP64 and ILP64 bit interafaces. Forthese interfaces.mod files are different, but should have the same name. That is the reason why the module definition files such as mkl_dfti.f90 are left forcompilation at user's side.
Dima
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL_DFTI]
My command is:
ifort -I/opt/intel/Compiler/11.0/083/mkl/include -o procsl procsl.f90 -L/opt/intel/Compiler/11.0/083/mkl/lib/em64t/ -lmkl_core
The -L path should be set implicitly when you source the ifortvars script, so that's redundant.
-lmkl_core won't work by itself. You need also the ilp64 or lp64 library and (since you don't have any threading library option) -lmkl_sequential
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The -L path should be set implicitly when you source the ifortvars script, so that's redundant.
-lmkl_core won't work by itself. You need also the ilp64 or lp64 library and (since you don't have any threading library option) -lmkl_sequential
Thanks for the quick reply!
I realize now that my linking isn't complete - I'll get that fixed once I get it to compile.
In my MKL installation directory I have mkl/include/*.f90 but no *.mod files and no em64t directory. Any ideas on why I wouldn't have that directory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the quick reply!
I realize now that my linking isn't complete - I'll get that fixed once I get it to compile.
In my MKL installation directory I have mkl/include/*.f90 but no *.mod files and no em64t directory. Any ideas on why I wouldn't have that directory?
- 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
This is actually clearly written in the User's Guide (Fortran 95 Interfaces and Wrappers to LAPACK and BLAS) on pages 7-2 to 7-4, and full procedure (how to create thme) given. So it is "by design" and not that your installation failed or partially went wrong.
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is actually clearly written in the User's Guide (Fortran 95 Interfaces and Wrappers to LAPACK and BLAS) on pages 7-2 to 7-4, and full procedure (how to create thme) given. So it is "by design" and not that your installation failed or partially went wrong.
A.
I was not using LAPACK or BLAS, though. I was using the FFT library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I must have missed something. I admit I don't get it why did you need to compile the files (I understand you needed some include files for MKL DFTI lib)? I see no reason for that as VS should automatically create it for you.
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I must have missed something. I admit I don't get it why did you need to compile the files (I understand you needed some include files for MKL DFTI lib)? I see no reason for that as VS should automatically create it for you.
A.
I need the .mod files, which needed to be compiled from .f90 files as part of the installation. I'm assuming you meant visual studio by VS - I am in a Linux environment using ifort from the command line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
MKL did not provide precompiled .mod files because they are compiler dependent. Even if they were compiled with one version of Intel ifort, they won't be compatible with another, not to say about other compilers that MKL supports. Moreover, on64-bit systems MKLsupports LP64 and ILP64 bit interafaces. Forthese interfaces.mod files are different, but should have the same name. That is the reason why the module definition files such as mkl_dfti.f90 are left forcompilation at user's side.
Dima
- 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
I have always had similar issues with Fortran and C++ compilers.
Although INTEL provides code samples and comprehensive documentation to use with the compilers, they never provide the compilation approach in the same documentation of the example code. The compilation or coupling with other libs is usually the main and starting point of frustration in Fortran and C++ for beginners and sometimes intermediate users.
The documentation source to use INTEL FFT and example codes without the clear declaration of the compilation approach is an example of what I mean:
The link: https://software.intel.com/en-us/mkl-developer-reference-fortran-fft-code-examples
The documentation could directly point out that the user needs to execute the following command for proper compilation:
ifort -mkl [link to mkl_dfti.f90] file.f90
I have found it frustrating because just mentioning the use of "MKL_DFTI" module in the documentation is not enough for easy compilation.
Best
Vahid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you may find out many examples how to build MKL DFT*.f90 examples - see mklroot/examples/dftf and see how to use makefile and then easy compile.

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