[PATCH] D63009: [OpenMP] Add target task alloc function with device ID

Alexandre Eichenberger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 10 08:35:50 PDT 2019


AlexEichenberger added inline comments.


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:610
+  // size_t sizeof_shareds, kmp_routine_entry_t *task_entry,
+  // size_t device_id);
+  OMPRTL__kmpc_omp_target_task_alloc,
----------------
device_id is int64_t


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:1928
+                                CGM.SizeTy, CGM.SizeTy, KmpRoutineEntryPtrTy,
+                                CGM.SizeTy};
+    // Return void * and then cast to particular kmp_task_t type.
----------------
device_id must be a int64_t type, not a machine dependent quantity.


Repository:
  rC Clang

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

https://reviews.llvm.org/D63009





More information about the cfe-commits mailing list