PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

MKL not linking for Visual Fortran

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
gtarroyo



Joined: 05 Jun 2012
Posts: 10

PostPosted: Tue Nov 27, 2012 2:46 pm    Post subject: MKL not linking for Visual Fortran Reply with quote

I've recently downloaded MKL's free trial and am trying to link it into my program. I get the error

Code:
LINK : fatal error LNK1104: cannot open file 'libiomp5mt.lib'


It appears that MKL no longer needs or includes this file when operating and that pgvf is looking for it anyway. Is there a workaround to this problem?
Back to top
View user's profile
gtarroyo



Joined: 05 Jun 2012
Posts: 10

PostPosted: Tue Nov 27, 2012 3:20 pm    Post subject: Reply with quote

As a scary fix I copied mkl_blacs_mpich2_ilp64.lib and renamed it libiomp5mt.lib. I don't use mkl_blacs_mpich2_ilp64.lib so I felt it would not have any possible function call overlaps. I also kept the original mkl_blacs_mpich2_ilp64.lib unchanged. This seems to have fixed the linking problem for the mean time.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Thu Nov 29, 2012 10:12 am    Post subject: Reply with quote

Thanks gtarroyo,

Our tools team is looking into it. In the meantime, you can add the flag "-nodefaultlib:libiomp5mt" to the link command options to work around this issue.

Best Regards,
Mat
Back to top
View user's profile
gtarroyo



Joined: 05 Jun 2012
Posts: 10

PostPosted: Fri Nov 30, 2012 3:51 pm    Post subject: Reply with quote

Thank you very much that works perfectly.
-Gabe
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group