Re: Parallel Studio Inspect reports data race where there is none
MSFT Compiler 8.0
Quite the opposite results
Hi,
I just learned that Inspector doesn't support MSFT OpenMP run-time (shame on me).
Please see the Release Notes:
"Intel® Parallel Inspector supports analysis of applications built with Intel® Parallel Composer, Intel® C++
Compiler Professional Edition version 10.0 or higher, and/or Microsoft Visual C++* 2005 or 2008. Applications that use
OpenMP* and are built with the Microsoft* compiler must link to the OpenMP* compatibility library as supplied by an
Intel compiler."
In order to workaround this limitation you should link with the Intel OpenMP compatibility library. You need to avoid
linking the Microsoft OpenMP run-time library (vcomp) and explicitly pass the name of the Intel OpenMP compatibility
library as linker options.
In the Visual Studio IDE:
Project Properties -> Linker -> Input -> Ignore Specific Library -> put vcomp.dll or vcompd.dll here
Project Properties -> Linker -> Input -> Additional Dependencies -> put libiomp5md.lib here
In the command line:
icl /MD /openmp hello.cpp /link /NODEFAULTLIB:"vcomp.dll" libiomp5md.lib
For more information refer to Using the OpenMP Compatibility Libraries document
-Vladimir |