使用英特爾的OpenMP *從Visual Studio庫*
當使用運行Windows操作系統的系統,可以進行某些修改 在Visual C++ Visual Studio 2005開發環境中允許您使用英特爾C++編譯器和Visual C++創建 應用程序,該應用程序使用英特爾OpenMP庫。
注:
微軟的Visual C++必須具有符號_OPENMP_NOFORCE_MANIFEST 定義,否則將包括清單的vcomp90的DLL。雖然 這可能不會在編譯系統上造成問題,但當應用程序移動到另一個系統時, 會導致問題,而該系統不會安裝此DLL。
設置項目屬性頁,表示英特爾的OpenMP運行時庫 位置:
Open the project's property pages in from the main menu: Project > Properties (or right click the Project name and select Properties) .
Select Configuration Properties > Linker > General > Additional Library Directories
Enter the path to the Intel compiler libraries. For example, for an IA-32 architecture system, enter:
<Intel_compiler_installation_path>\IA32\LIB
充分利用英特爾的OpenMP動態運行時庫在運行時訪問; 必須指定相應的路徑:
Open the project's property pages in from the main menu: Project > Properties (or right click the Project name and select Properties).
Select Configuration Properties > Debugging > Environment
Enter the path to the Intel compiler libraries. For example, for an IA-32 architecture system, enter:
PATH =%PATH%; \ IA32 \ BIN
加入英特爾的OpenMP運行時庫的名字連接器的選項和 排除默認微軟的OpenMP運行 - 時間庫:
Open the project's property pages in from the main menu: Project > Properties (or right click the Project name and select Properties).
Select Configuration Properties > Linker > Command Line > Additional Options
Enter the OpenMP library name and the Visual C++ linker option, /nodefaultlib.
偉大的第一個答案,noob! ;-) –