[libomptarget] Build most of common/src for amdgcn
Excluding parallel.cu, which uses an integer min() from cuda,
Excluding support.cu, which calls malloc that is not yet available for amdgcn
Differential D71446
[libomptarget] Build most of common/src for amdgcn JonChesterfield on Dec 12 2019, 5:10 PM. Authored by
Details [libomptarget] Build most of common/src for amdgcn Excluding parallel.cu, which uses an integer min() from cuda,
Diff Detail
Event TimelineComment Actions
Couldn't we provide these functions in the target_impl.h of amdgcn? I would also rename the files to cpp as they seem to not contain CUDA anymore, correct? Comment Actions
Indeed. That's the plan. Both have a degree of design choice about them though so were excluded from this patch.
They do not contain CUDA, other than the atomic functions which could be argued are just C++ anyway, as they appear in the amdgcn implementation. Renaming the files should be done separately to this though as it may upset the nvcc build (and definitely won't upset the amdgcn one). How do you feel about landing this while I look into the other three points? |