[Openmp-dev] Query regarding the ICV: 'nthreads-var'
Jini Susan George via Openmp-dev
openmp-dev at lists.llvm.org
Tue Nov 19 20:02:42 PST 2019
Thanks a bunch, Andrey!
- Jini
On Mon, Nov 18, 2019 at 9:24 PM Churbanov, Andrey <
Andrey.Churbanov at intel.com> wrote:
> Hi Jini,
>
>
>
> Your judgement basically looks correct. Besides that
> current_nesting_level should be lesser than (used – 1) in order to
> enumerate __kmp_nested_nth.nth array. I’d also guess that you meant “at any
> point” of user’s code, as at the start of parallel region the nthreads-var
> is changing inside the runtime library code along with changing of nesting
> level.
>
>
>
> Regards,
>
> Andrey
>
>
>
> *From:* Openmp-dev [mailto:openmp-dev-bounces at lists.llvm.org] *On Behalf
> Of *Jini Susan George via Openmp-dev
> *Sent:* Monday, November 18, 2019 8:09 AM
> *To:* openmp-dev at lists.llvm.org
> *Subject:* [Openmp-dev] Query regarding the ICV: 'nthreads-var'
>
>
>
> 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.
>
>
> --------------------------------------------------------------------
> Joint Stock Company Intel A/O
> Registered legal address: Krylatsky Hills Business Park,
> 17 Krylatskaya Str., Bldg 4, Moscow 121614,
> Russian Federation
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20191120/a90d2e25/attachment.html>
More information about the Openmp-dev
mailing list