Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ioannis_K_
Novice
230 Views

Fortran compiler: "libiomp5md.dll missing" message while using static runtime library

Jump to solution

Hello,

I have just installed the oneAPI HPC Toolkit for Visual Studio 2019. I try to run a Fortran console app that I built using the static multithreaded runtime library. When I try to run the executable, I get the message that libiomp5md.dll is missing. This was a message that I would expect to see whenever I build using dll runtime libraries, not static ones. 

Is there a reason for obtaining this message? I am pretty sure I had never seen it when using older versions (e.g., 2019 ones) of the Fortran compiler with static runtime libraries.

0 Kudos

Accepted Solutions
Barbara_P_Intel
Moderator
207 Views

There is no static runtime library for OpenMP on Windows.  See this table in the Fortran Developer Guide.

 

View solution in original post

5 Replies
Barbara_P_Intel
Moderator
208 Views

There is no static runtime library for OpenMP on Windows.  See this table in the Fortran Developer Guide.

 

View solution in original post

Ioannis_K_
Novice
203 Views

OK, thank you. This only applies for oneAPI, correct? I want to ensure that I understand why I did not have this problem with earlier versions of the Intel compiler.

Also, shouldn't my system be able to find libiomp5md.dll? I do have it in my installation of Intel oneAPI.

 

Barbara_P_Intel
Moderator
199 Views

I have a copy of the PSXE 2018 Fortran Developer Guide and it says the same thing, no static OpenMP library on Windows.

Somehow your path is not set correctly. My Windows skills are weak.

I suggest you post this question on the Fortran Forum.  That's the best place to get your Fortran questions answered for all flavors of Intel Fortran.

 

 

mecej4
Black Belt
109 Views

For a number of years, EXEs compiled with Intel Fortran require libiomp5md.dll to be available through PATH. With OneAPI, that DLL should exist in 

...\ONEAPI\compiler\latest\windows\redist\intel64_win\compiler\

for the 64-bit DLL. This is true even for EXEs built with all other libraries linked statically.

Locate the directory on your PC where this DLL has been installed.

When you get the "...dll missing" message when attempting to run your EXE, check PATH and rectify as appropriate.

Steve_Lionel
Black Belt Retired Employee
57 Views

I think it has been at least six years since a static OpenMP library was provided on Windows. It's still there on Linux.