This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget][nfc] Provide target_impl malloc/free
ClosedPublic

Authored by JonChesterfield on Dec 18 2019, 6:18 PM.

Details

Summary

[libomptarget][nfc] Provide target_impl malloc/free

Sufficient to build support.cu for amdgcn

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptDec 18 2019, 6:19 PM
JonChesterfield marked 2 inline comments as done.Dec 18 2019, 6:21 PM
JonChesterfield added inline comments.
openmp/libomptarget/deviceRTLs/common/omptarget.h
19

stdlib is only used for malloc/free in the deviceRTL

openmp/libomptarget/deviceRTLs/common/src/support.cu
251

All calls to malloc/free are routed via these wrappers

This revision is now accepted and ready to land.Dec 19 2019, 8:52 AM
This revision was automatically updated to reflect the committed changes.