[Openmp-commits] [PATCH] D106692: [Libomptarget] Add unroll flag to shared variables loop

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 23 13:45:39 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe1dedecaa6f8: [Libomptarget] Add unroll flag to shared variables loop (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106692/new/

https://reviews.llvm.org/D106692

Files:
  openmp/libomptarget/deviceRTLs/common/src/parallel.cu


Index: openmp/libomptarget/deviceRTLs/common/src/parallel.cu
===================================================================
--- openmp/libomptarget/deviceRTLs/common/src/parallel.cu
+++ openmp/libomptarget/deviceRTLs/common/src/parallel.cu
@@ -314,6 +314,7 @@
     void **GlobalArgs;
     __kmpc_begin_sharing_variables(&GlobalArgs, nargs);
     // TODO: faster memcpy?
+#pragma unroll
     for (int I = 0; I < nargs; I++)
       GlobalArgs[I] = args[I];
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106692.361333.patch
Type: text/x-patch
Size: 465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210723/aee2e2ed/attachment.bin>


More information about the Openmp-commits mailing list