Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Ankündigungen
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29283 Diskussionen

DLL generation and static linking to intel runtime libraries

DataScientist
Geschätzter Beitragender I
2.819Aufrufe

What is the required flag to generate DLL with the intel runtime libraries linked statically to the DLL? I guess this is in general not a good idea. But in cases where the DLL is going to be used from other languages such as MATLAB/Python/R, it can be quite helpful since there would be no need for a separate installation of the runtime libraries. On Linux, -static-intel achieves the goal, but on Windows, I am not sure what flag is needed. Thanks for any suggestions.

0 Kudos
1 Lösung
Steve_Lionel
Geehrter Beitragender III
2.819Aufrufe

/MT or /libs:static /threads. In Visual Studio, select "Multithreaded" when building the DLL.

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten
Steve_Lionel
Geehrter Beitragender III
2.820Aufrufe

/MT or /libs:static /threads. In Visual Studio, select "Multithreaded" when building the DLL.

DataScientist
Geschätzter Beitragender I
2.819Aufrufe

Steve, Thank you. Does it also automatically link the static Intel MPI library? I suppose it does not.

Steve_Lionel
Geehrter Beitragender III
2.819Aufrufe

If you want MPI you have to specify it yourself. The only time the compiler will link in MPI is if you enable coarrays and then it's always the shared library. (There is no static coarray support library.)

Antworten