Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4998 Discussions

Debug:Parallell problem with OpenMP

jansson
Beginner
354 Views
Hi Folks,

I want to find the remaining data sharing problems in my Fortran program parallelized by !$OMP TASK constructs.

When starting my program I get a few OpenMP Errors and Warnings and to get rid of them I either has to add /Qopenmp-link:static
or
sett "Enable Parallel Debug Checks" to "No" for all Fortran projects.

This is related to issue number DPD200156994.
Below is a link to the thread where I got this info:
http://software.intel.com/en-us/forums/showthread.php?t=80543


My question is, how can I proceed my work of getting my program working before there is a patch for this issue?
How will adding /Qopenmp-link:static affect my use of Inspector and Amplifier?
How will setting "Enable Parallel Debug Checks" to "No" for all Fortran projects affect my use of Inspector and Amplifier?


Is there a combination of older programs (Fortran compiler, Vtune, Thread Checker, Visual Studio) that would help me find my OpenMP data sharing problems, and later on also let me profile it for speed, while waiting for the patch to be released?


My present setup:
Core i7, Windows 7, VS2010, Visual Fortran Composer XE 2011, VTune Amplifier XE 2011, Inspector XE 2011.

Best Regards,
Magnus





0 Kudos
7 Replies
Peter_W_Intel
Employee
354 Views
I am surprise for "__itt_sync_released" function warning message, have you linked with right libittnotify.lib which should be from Inspector XE? (Note that old VTune/Threading tools have same libittnotify.lib, please ensure you linked right one)

Running Inspector XE to use "/Qopenmp" to build application is OK, I never use "/Qopenmp-link:static"

Disabling Parallel Debug Checks to off, it will not impacts onrunning Inspector XE.

Is it possible that you put example code here for investigating?

Thanks, Peter
0 Kudos
jansson
Beginner
354 Views
How do I find out what libittnotify.lib I use ?
I have older Vtune et.al. so this might be the problem.

Regards,
Magnus
0 Kudos
Peter_W_Intel
Employee
354 Views
Hi Magnus,

Please doNOT use sameINCLUDE file / Library file from old VTune Performance Analyzer.

Use:

Windows* - InspectorXE 2011\include\ittnotify.h
Linux* - inspector_xe_2011/include/ittnotify.h

Windows* -Inspector XE 2011\lib32(lib64)\ittnotify.lib
Linux* - inspector_xe_2011/lib32(lib64)/libittnotify.a

Regards, Peter

0 Kudos
jansson
Beginner
354 Views
Hi,
I cant find any reference to any ittnotify in my solution or its projects, where should I look to see if i am using them?

If I use Cygwin to search and get paste-able output I find these files

# find /cygdrive/c -iname ittnotify* 2>/dev/null
/cygdrive/c/Program Files (x86)/Intel/Inspector XE 2011/include/ittnotify.h
/cygdrive/c/Program Files (x86)/Intel/Inspector XE 2011/include/legacy/ittnotify.h
/cygdrive/c/Program Files (x86)/Intel/VTune Amplifier XE 2011/bin32/runtime/ittnotify_sampling.dll
/cygdrive/c/Program Files (x86)/Intel/VTune Amplifier XE 2011/bin64/runtime/ittnotify_sampling.dll
/cygdrive/c/Program Files (x86)/Intel/VTune Amplifier XE 2011/include/ittnotify.h
/cygdrive/c/Program Files (x86)/Intel/VTune Amplifier XE 2011/include/legacy/ittnotify.h

No lib files as you suggested.
So I got no such files from older versions of Vtune.

Any ideas or should I just give up?

Regards,
Magnus
0 Kudos
jansson
Beginner
354 Views
maybe I should search for *ittno* instead of ittnotify* then I find some .lib files

# find . -iname *ittno* 2>/dev/null
./Program Files (x86)/Intel/Inspector XE 2011/bin32/runtime/libittnotify.dll
./Program Files (x86)/Intel/Inspector XE 2011/bin64/runtime/libittnotify.dll
./Program Files (x86)/Intel/Inspector XE 2011/include/ittnotify.h
./Program Files (x86)/Intel/Inspector XE 2011/include/legacy/ittnotify.h
./Program Files (x86)/Intel/Inspector XE 2011/include/libittnotify.h
./Program Files (x86)/Intel/Inspector XE 2011/lib32/libittnotify.lib
./Program Files (x86)/Intel/Inspector XE 2011/lib64/libittnotify.lib
./Program Files (x86)/Intel/VTune/Analyzer/bin/libittnotify.dll
./Program Files (x86)/Intel/VTune/Analyzer/bin32e/libittnotify.dll
./Program Files (x86)/Intel/VTune/Analyzer/Lib/libittnotify.lib
./Program Files (x86)/Intel/VTune/Analyzer/Lib32e/libittnotify.lib
./Program Files (x86)/Intel/VTune/tcheck/include/libittnotify.h
./Program Files (x86)/Intel/VTune/tprofile/include/libittnotify.h
./Program Files (x86)/Intel/VTune Amplifier XE 2011/bin32/runtime/ittnotify_sampling.dll
./Program Files (x86)/Intel/VTune Amplifier XE 2011/bin32/runtime/libittnotify.dll
./Program Files (x86)/Intel/VTune Amplifier XE 2011/bin64/runtime/ittnotify_sampling.dll
./Program Files (x86)/Intel/VTune Amplifier XE 2011/bin64/runtime/libittnotify.dll
./Program Files (x86)/Intel/VTune Amplifier XE 2011/include/ittnotify.h
./Program Files (x86)/Intel/VTune Amplifier XE 2011/include/legacy/ittnotify.h
./Program Files (x86)/Intel/VTune Amplifier XE 2011/include/libittnotify.h
./Program Files (x86)/Intel/VTune Amplifier XE 2011/lib32/libittnotify.lib
./Program Files (x86)/Intel/VTune Amplifier XE 2011/lib64/libittnotify.lib

regards,Magnus
0 Kudos
Peter_W_Intel
Employee
354 Views
Hello Magnus,

I saw necessary files from your output -

./Program Files (x86)/Intel/Inspector XE 2011/include/libittnotify.h
./Program Files (x86)/Intel/Inspector XE 2011/lib32/libittnotify.lib
./Program Files (x86)/Intel/Inspector XE 2011/lib64/libittnotify.lib

You have to add INCLUDE/LIB Paths, library nameto your project. Here is an example - I work on VS2010 project.





Regards, Peter
0 Kudos
Peter_W_Intel
Employee
354 Views

For Intel Fortran project, please work on project's properties (Do same things like as VC++ project) - modify

1. Fortran->General->Additional Include Directories
2. Linker->General->Additional Library Directories
3. Linker->Input->Additional Dependencies

0 Kudos
Reply