Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Linking fortran with abaqus

wassenberg__nick
Beginner
1,204 Views

Hi,

I am trying to link fortran with abaqus. I am using XE 2015 intel compiler with visual studio 2010 and abaqus 6.14-1. I followed the usual steps for linking, namely finding ifortvars etc. and adding them to abaqus.bat. I think this step is done correctly since when I start Abaqus cae it shows the lines visual fortran XE and visual studio code.

However, when I run abaqus vertification, it gives me the following error: LINK : fatal error LNK1181: cannot open input file 'msmpi.lib'

I followed the advise here: https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/662186#comme...

So I did the following:

  • Downloaded the files mentioned there (in the comments, see link), to download the msmpi files
  • Go to system properties->advanced->environmental variables->system variables->edit path --> and then I added this: ;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.2.187\windows\bin;C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64 

 

However, I am still obtaining the following error: LINK : fatal error LNK1181: cannot open input file 'msmpi.lib'

I was hoping someone has experience with this and coul help. I apologize that this has been asked before, but I am not able to make it work.

Kind regards,

Nick

 

 

 

 

 

 

 

 

 

 

 

 

 

https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/662186#comme...

0 Kudos
1 Solution
Steve_Lionel
Black Belt Retired Employee
1,204 Views

msmpi.lib is the Microsoft MPI library. It is not a standard part of Windows, you must install it separately. https://www.microsoft.com/en-us/download/details.aspx?id=57467 After installation you'll need to add under "Linker > Input > Additional library directories" the path to the folder where msmpi.lib lives

I have never used Abaqus and don't know why it is looking for an MPI library.

View solution in original post

4 Replies
Steve_Lionel
Black Belt Retired Employee
1,205 Views

msmpi.lib is the Microsoft MPI library. It is not a standard part of Windows, you must install it separately. https://www.microsoft.com/en-us/download/details.aspx?id=57467 After installation you'll need to add under "Linker > Input > Additional library directories" the path to the folder where msmpi.lib lives

I have never used Abaqus and don't know why it is looking for an MPI library.

wassenberg__nick
Beginner
1,204 Views

Hi Steve,

Thank you for your reply. Where do you find ' linker'  as you mentioned? I am not able to find it.

Kind regards

Nick

wassenberg__nick
Beginner
1,204 Views

Hi,

Thanks again Steve for the help. It is solved now.

If anyone else is still having trouble and has the same error, I can advise the following:

  • Download the msmpi files as done here (https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/662186#comme...). Make sure you have the right file for your abaqus version. It might not work with newer or older versions.
  • copy msmpi.lib, msmpifec.lib and msmpifmc.lib (for me they were here:C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64)

  • Paste these 3 files in: C:\Programs\SIMULIA\Abaqus\6.14-1\code\lib (Here I found all the other lib files)

  • If it still doesnt work consider changing the version of the mspmi files.

Kind regards,

Nick

Steve_Lionel
Black Belt Retired Employee
1,204 Views

In your Fortran project properties there is a Linker section. But I guess you are doing this from the command line, so that would require different changes. I would not have advised copying the MS MPI libraries into a different product's folder, but if it works for you, ok.

Reply