Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
22 Views

OpenMP Affinity conflict with SetThreadAffinityMask

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