[Openmp-dev] Query regarding the ICV: 'nthreads-var'
Jini Susan George via Openmp-dev
openmp-dev at lists.llvm.org
Sun Nov 17 21:08:59 PST 2019
Hi folks,
I am working on modifying OMPD (in the
OpenMPToolsInterface/LLVM-openmp/ompd-tests branch) to retrieve the value
of the ICV ‘nthreads-var’. ‘nthreads-var’ is a list and as per my
understanding, the value of this list at any point for a particular thread
would be:
[this_thr->th.th_current_task->td_icvs.nproc,
__kmp_nested_nth.nth[current_nesting_level +1],
__kmp_nested_nth.nth[current_nesting_level + 2], …,
__kmp_nested_nth.nth[used - 1]]
Except for the first element of this list, the other elements of this list
are subject to the condition that current_nesting_level is less
than __kmp_nested_nth.used. Wanted to confirm with you folks that my
understanding is correct. Please correct me otherwise.
Thanks a bunch,
Jini.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20191118/5e053407/attachment.html>
More information about the Openmp-dev
mailing list