Software Archive
Read-only legacy content
17061 Discussions

Cant profile OpenMP code

AndrewC
New Contributor III
400 Views
When trying to profile some OpenMP code using "Intel Parallel Amplifier 2011 Update 1, (build 127928)", in Studio 2008, Windows XP 64,

I am getting.....

OMP: Error #134: Cannot set thread affinity mask.
OMP: System error #87: The parameter is incorrect.
OMP: Error #134: Cannot set thread affinity mask.
OMP: System error #87: The parameter is incorrect.

And the profile operation stops at that point.

The code runs fine outside of Amplifier.
I am not trying to set affinity flags in my code , it is "vanilla omp"
I do not have any KMP_ variables set.
0 Kudos
2 Replies
Kirill_R_Intel
Employee
400 Views
Hello,
Could you please provide some more info about the problem:
- Is the issue seen when application runs from Amplifier only? Is there a problem if it is started standalone?
- Please set environment variables KMP_SETTINGS=1 and KMP_VERSION=1. Than reproduce the issue. There should be more detailed error output.
- Can you attach a reproducer sample? Well try to reproduce it in our lab.
0 Kudos
Kirill_R_Intel
Employee
400 Views

Two more questions:

What compiler do you use: MSVS of Intel?

And do you use Intel openMP runtime? If Microsoft compiler is used, Intel openMP should be explicitly set.

Regards,

Kirill

0 Kudos
Reply