Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
1690 Discussions

Is there any openmp function to tell which thread runs on which CPU?

fatalme
Beginner
113 Views
Is there a function like "omp_get_cpu_num()" to tell the thread runs on which cpu?
Thanks.
0 Kudos
2 Replies
Gennady_F_Intel
Moderator
113 Views
there are no such functions..
Gennady_F_Intel
Moderator
113 Views
one more note - may beKMP_AFFINITY=verbose will help you with your tasks? please refer to the Intel Compiler Doc for details..
Reply