[PATCH] D49188: [OpenMP] Initialize data sharing stack for SPMD case

Jonas Hahnfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 11 08:25:23 PDT 2018


Hahnfeld added inline comments.


================
Comment at: lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp:84-85
   OMPRTL_NVPTX__kmpc_data_sharing_init_stack,
+  /// Call to void __kmpc_data_sharing_init_stack_spmd();
+  OMPRTL_NVPTX__kmpc_data_sharing_init_stack_spmd,
   /// Call to void* __kmpc_data_sharing_push_stack(size_t size,
----------------
In case I'm not missing something obvious this function doesn't exist (yet) in libomptarget-nvptx?


================
Comment at: lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp:1110-1114
-  // For data sharing, we need to initialize the stack for workers.
-  CGF.EmitRuntimeCall(
-      createNVPTXRuntimeFunction(
-          OMPRTL_NVPTX__kmpc_data_sharing_init_stack));
-
----------------
Why is this call being removed? There's no mention in the summary AFAICS


Repository:
  rC Clang

https://reviews.llvm.org/D49188





More information about the cfe-commits mailing list