[libomptarget][amdgcn] Build amdgcn devicertl as openmp
Change cmake to build as openmp and fix up some minor errors in the code.
Paths
| Differential D96533
[libomptarget][amdgcn] Build amdgcn devicertl as openmp ClosedPublic Authored by JonChesterfield on Feb 11 2021, 11:48 AM.
Details Summary [libomptarget][amdgcn] Build amdgcn devicertl as openmp Change cmake to build as openmp and fix up some minor errors in the code.
Diff Detail
Event TimelineHerald added subscribers: jfb, guansong, yaxunl and 2 others. · View Herald TranscriptFeb 11 2021, 11:48 AM Comment Actions This doesn't toggle the cmake to build the amdgcn plugin by default. I'm planning to do that after the dust settles in the internal builds from this. Comment Actions
One nice thing if AMD can build deviceRTLs with OpenMP is, we can completely get rid of the macro DEVICE. Comment Actions Yep. I'm walking a slightly fine line between this and the internal rocm builds so would like to keep the functional changes separate from the cleanup. Plan is ship this, which 'should' work internally, pick up any pieces if it doesn't, then drop the DEVICE and probably INLINE macros. Maybe get rid of some of EXTERN as well. Curiously the internal build does compile this library as openmp, and has done since December, but uses a slightly different clang and a slightly different devicertl.
This revision is now accepted and ready to land.Feb 11 2021, 5:42 PM This revision was landed with ongoing or failed builds.Feb 12 2021, 1:51 AM Closed by commit rG6f04addc8b2e: [libomptarget][amdgcn] Build amdgcn devicertl as openmp (authored by JonChesterfield). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 323255 openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
openmp/libomptarget/deviceRTLs/amdgcn/src/amdgcn_interface.h
openmp/libomptarget/deviceRTLs/amdgcn/src/amdgcn_locks.hip
openmp/libomptarget/deviceRTLs/amdgcn/src/amdgcn_smid.hip
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip
openmp/libomptarget/deviceRTLs/common/omptarget.h
|