Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7702 Discussions

OpenMP Affinity conflict with SetThreadAffinityMask

chew__kk
Beginner
244 Views

Hi,

I've successfully set openmp affinity using environment OMP_PLACES and OMP_PROC_BIND. At the same, I tried to set affinity for my other threads not managed by openmp using windows SetThreadAfinityMask. Once I added SetThreadAfinityMask, openmp started complaining, 

OMP warning #123: Ignoring invalid os proc ID 0

OMP warning #124: No valid os proc IDs specified - not using affinity

I'm sure I use SetThreadAfinityMask outside the range set in OMP_PLACES. Is there an approach for both affinity to coexist?

Thanks,

kk

0 Kudos
0 Replies
Reply