[Openmp-commits] [PATCH] D49564: [OPNEMP, NVPTX] Fixed sychronization construct + code cleanup.
George Rokos via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 20 16:54:35 PDT 2018
grokos added inline comments.
================
Comment at: libomptarget/deviceRTLs/nvptx/src/sync.cu:53-69
+ int numberOfActiveOMPThreads = GetNumberOfOmpThreads(
+ tid, isSPMDMode(), /*isRuntimeUninitialized=*/false);
+ if (numberOfActiveOMPThreads > 1) {
+ if (isSPMDMode()) {
+ __kmpc_barrier_simple_spmd(loc_ref, tid);
+ } else {
// The #threads parameter must be rounded up to the WARPSIZE.
----------------
Have these changes been tested on pre-Volta cards?
Repository:
rOMP OpenMP
https://reviews.llvm.org/D49564
More information about the Openmp-commits
mailing list