OpenMP Affinity conflict with SetThreadAffinityMask
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?