This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget] Add support for target allocators to dynamic cuda RTL
ClosedPublic

Authored by JonChesterfield on May 10 2021, 7:23 AM.

Details

Summary

[libomptarget] Add support for target allocators to dynamic cuda RTL

Follow on to D102000 which introduced new calls into libcuda. This patch adds
the corresponding entry points to dynamic_cuda, fixing the build for systems
that do not have the cuda toolkit installed.

Function types and enum from https://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MEM.html

Diff Detail

Event Timeline

JonChesterfield requested review of this revision.May 10 2021, 7:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2021, 7:23 AM
JonChesterfield edited the summary of this revision. (Show Details)May 10 2021, 7:24 AM
pdhaliwal accepted this revision.May 10 2021, 7:26 AM

LGTM. Thanks for fixing this!

This revision is now accepted and ready to land.May 10 2021, 7:26 AM
openmp/libomptarget/plugins/cuda/dynamic_cuda/cuda.h
52

Follows the above pattern but I don't see why we need the name_enum identifiers. Maybe one for a later cleanup.

This revision was landed with ongoing or failed builds.May 10 2021, 7:28 AM
This revision was automatically updated to reflect the committed changes.