[Openmp-commits] [PATCH] D97883: [libomptarget] Add allocator support for target memory

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 9 15:58:15 PST 2021


tianshilei1992 added inline comments.


================
Comment at: openmp/libomptarget/src/api.cpp:40
 
-EXTERN void *omp_target_alloc(size_t size, int device_num) {
+static void *targetAllocExplicit(size_t size, int device_num, int kind,
+                                 const char *name) {
----------------
maybe it's better to move this function to `omptarget.cpp`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97883



More information about the Openmp-commits mailing list