[Openmp-commits] [PATCH] D71685: [libomptarget][nfc] Provide target_impl malloc/free

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Dec 18 18:28:35 PST 2019


JonChesterfield marked 2 inline comments as done.
JonChesterfield added inline comments.


================
Comment at: openmp/libomptarget/deviceRTLs/common/omptarget.h:19
 #include <inttypes.h>
 #include <math.h>
 
----------------
stdlib is only used for malloc/free in the deviceRTL


================
Comment at: openmp/libomptarget/deviceRTLs/common/src/support.cu:251
 
 DEVICE void *SafeMalloc(size_t size, const char *msg) // check if success
 {
----------------
All calls to malloc/free are routed via these wrappers


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71685





More information about the Openmp-commits mailing list