According to OpenMP 4.5, p250:12-14:
If the requested nest level is outside the range of 0 and the nest level of the current thread, as returned by the omp_get_level routine, the routine returns -1.
The SPMD code path will need a similar fix.
Paths
| Differential D51787
[libomptarget-nvptx] Fix ancestor_thread_num and team_size (non-SPMD) ClosedPublic Authored by Hahnfeld on Sep 7 2018, 6:32 AM.
Details Summary According to OpenMP 4.5, p250:12-14: If the requested nest level is outside the range of 0 and the nest level of the current thread, as returned by the omp_get_level routine, the routine returns -1. The SPMD code path will need a similar fix.
Diff Detail
Event TimelineHahnfeld added a parent revision: D51786: [libomptarget-nvptx] Add tests for nested parallelism.Sep 7 2018, 6:34 AM This revision is now accepted and ready to land.Sep 29 2018, 12:35 PM Closed by commit rL343401: [libomptarget-nvptx] Fix ancestor_thread_num and team_size (non-SPMD) (authored by Hahnfeld). · Explain WhySep 30 2018, 2:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 167637 openmp/trunk/libomptarget/deviceRTLs/nvptx/src/libcall.cu
openmp/trunk/libomptarget/deviceRTLs/nvptx/test/parallel/level.c
|