| View previous topic :: View next topic |
| Author |
Message |
gtarroyo
Joined: 05 Jun 2012 Posts: 10
|
Posted: Tue Nov 27, 2012 2:46 pm Post subject: MKL not linking for Visual Fortran |
|
|
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 |
|
 |
gtarroyo
Joined: 05 Jun 2012 Posts: 10
|
Posted: Tue Nov 27, 2012 3:20 pm Post subject: |
|
|
| 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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Nov 29, 2012 10:12 am Post subject: |
|
|
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 |
|
 |
gtarroyo
Joined: 05 Jun 2012 Posts: 10
|
Posted: Fri Nov 30, 2012 3:51 pm Post subject: |
|
|
Thank you very much that works perfectly.
-Gabe |
|
| Back to top |
|
 |
|