Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Trying to compile a module that uses an intel MKL module

Trying to compile a module that uses an intel MKL module

Trying to compile a module that uses an intel MKL module

I am using Windows 7 64-bit with Intel Parallel Studio XE 2013. I have a .FOR file that contains the following line called within a module:

use mkl_dss
which obviously comes from the Math Kernel Library.

I tried compiling at as shown below:

D:\TEMP\TRUNK-IFORT>ifort -free -fpp -D__INTEL_COMPILER -c Solver.FOR /Qmkl=parallel

Which results in:

Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Inte
l(R) 64, Version Build 20121008
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.

fpp: warning: macro redefined: __INTEL_COMPILER
Solver.FOR(25): error #7002: Error in opening the compiled module file. Check I
use mkl_dss

I've tried several things such as running the mklvars.bat file but none of them worked. What might be the root cause of this? How can I get the MKL library to be recognized by my module?

RE: Trying to compile a module that uses an intel MKL module

You may need to add a path point to your MKL library, so that compiler/linker can find it out.

One FEA package for all engineering simulation needs

RE: Trying to compile a module that uses an intel MKL module

I don't know whether this is still the case but in the past

.f .for .ftn was for F77 files
.f90 was for later versions

use is an f90 feature so your program really needs to be called solver.f90. use normally picks up .mod files, which you tell the compiler about using the -I flag. So if your mklvars.bat has set up something that tells you which directory the .mod files are in.

Have you cross posted this on stackoverflow as well? If you are cross posting, please warn the forum so that the members can check and not spend time answering a question that someone else may already have posted a solution for.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close