[Openmp-commits] [PATCH] D51787: [libomptarget-nvptx] Fix ancestor_thread_num and team_size (non-SPMD)

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 7 06:36:00 PDT 2018


Hahnfeld created this revision.
Hahnfeld added reviewers: AlexEichenberger, grokos, kkwli0.
Herald added subscribers: openmp-commits, jfb.
Hahnfeld added a dependency: D51786: [libomptarget-nvptx] Add tests for nested parallelism.

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.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D51787

Files:
  libomptarget/deviceRTLs/nvptx/src/libcall.cu
  libomptarget/deviceRTLs/nvptx/test/parallel/level.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51787.164406.patch
Type: text/x-patch
Size: 6777 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180907/56dae303/attachment-0001.bin>


More information about the Openmp-commits mailing list