- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The mkl link line adviser recommended that I add the ifort compiler option:
/module:"%MKLROOT%\include\intel64\lp64"
I also had the option:
/warn:interfaces
This gives the error: Unable to open directory (echoes directory above)
I removed the /module option and that eliminated the error. From which I guess the compiler was trying to write the generated module files to the above directory.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right - it should have used /include instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It recommended BOTH the /module and /include options.
All's well that ends well. I was stumped on using blas95 until I signed up as a developer.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
/module option is correct for MKL. For example, MKL provides F95 interfaces for LAPACK and BLAS built for Intel Fortran. The .mod files are provided for Intel Fortran in the path you have mentioned from MKL Link Line Advisor
But MKL also tries to be compiler agnostic so they also provide sources for the interfaces that can be built with Gfortran or any other Fortran 95 compiler. These have to be hand-built with nmake on Windows, or make on Linux and macOS. this will create .mod files that can be used for these libraries. Information for Windows is HERE and Linux is HERE
and macOS HERE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The problem with /module is, as @fort found, it specifies the folder to write module files, in addition to giving a location to search. Asking to write .mod files into the MKL product folder will fail. /include is what they wanted here.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page