Print out the used wait policy for threads

Print out the used wait policy for threads

Hello everyone.

I am trying to see (print out) the status of a waiting thread after setting up the OMP_WAIT_POLICY environment variables.

For example, I am setting the OMP_WAIT_POLICY = passive but I want to show that the waiting threads are in passive mode.

Thanks in advance.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Not sure what you want to achieve, but you can check the result of kmp_get_library() function call. If it is equal to 2, then the wait policy is active. If it is equal to 3, the policy is passive.

Regards,
Andrey

 

Thanks a lot.

Leave a Comment

Please sign in to add a comment. Not a member? Join today