[Openmp-commits] [PATCH] D51783: [libomptarget-nvptx] Fix number of threads in parallel

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


Hahnfeld created this revision.
Hahnfeld added reviewers: AlexEichenberger, grokos, kkwli0.
Herald added a subscriber: openmp-commits.

If there is no num_threads() clause we must consider the
nthreads-var ICV. Its value is set by omp_set_num_threads()
and can be queried using omp_get_max_num_threads().
The rewritten code now closely resembles the algorithm given
in the OpenMP standard.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D51783

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51783.164403.patch
Type: text/x-patch
Size: 10115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180907/52f35a25/attachment-0001.bin>


More information about the Openmp-commits mailing list