Software Archive
Read-only legacy content
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 讨论

Cant profile OpenMP code

AndrewC
新分销商 III
694 次查看
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 项奖励
2 回复数
Kirill_R_Intel
694 次查看
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 项奖励
Kirill_R_Intel
694 次查看

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 项奖励
回复