| Last Modified On : | February 11, 2009 11:51 AM PST |
Rate |
|
The new OpenMP* Compatibility library
The Intel(R) Parallel Composer beta, and the Intel(R) C++/Fortran Compiler 10.1 or 11.0 include the following new OpenMP* compatibility libraries:
Visual C++ 2005* provides only dynamic OpenMP libraries: vcomp.lib, vcomp.dll
Visual C++ 2008* provides only dynamic OpenMP libraries: vcomp90.lib, vcomp90.dll
In one application there should be only ONE OpenMP run time library.
The Intel OpenMP compatibility libraries can be used with Microsoft* Visual C++ 2005 and 2008*. Followings are some examples on how to use:
>> cl /c /MD /D_OPENMP_NOFORCE_MANIFEST /openmp ompSrc1.cpp
>> link /nodefaultlib:vcomp90 libiomp5md.lib ompSrc1.obj
>> cl /c /MD /D_OPENMP_NOFORCE_MANIFEST /openmp ompSrc1.cpp
>> icl /c /MD /Qopenmp ompSrc2.cpp
>> xilink /nodefaultlib:vcomp90 libiomp5md.lib ompSrc1.obj ompSrc2.obj
The legacy OpenMP runtime library
The legacy OpenMP runtime library is deprecated in 11.x release. In case you're using a 3rd party library that uses the legacy OpenMP runtime, you can use the following option to link with the legacy libraries:
/Qopenmp-lib:legacy (note: deprecated)
The primary files are below: for full list of files, please see the Intel C++ or Fortran Compiler Documentation.
| March 18, 2009 3:47 PM PDT
Jennifer Jiang (Intel)
|
Those two options are for different usage. Compiler has default behavior as well. In 11.0 the new compatibility dynamic libary will be linked by default (icl /Qopenmp t.cpp). In 10.1 the legacy dynamic library will be linked by default (icl /Qopenmp t.cpp). "/Qopenmp-lib" should be used for selecting the legacy library or the new compatibility library. "/Qopenmp-link" should be used for selecting dynamic library or static library. |

English | 中文 | Русский | Français
Jennifer Jiang (Intel)
|
jinhoyoo
5
Registered User