diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2023-03-05 20:25:56 -0500 |
---|---|---|
committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2023-05-12 18:50:52 -0400 |
commit | 6adb9a0602bcd75acd383e13c253e471edc9b189 (patch) | |
tree | 88970399ee94f05ac638c43f76fc0b314e3825e5 /compiler-rt | |
parent | 19c5740a5a3a57454416ccade7640cb4ac6db43d (diff) | |
download | llvm-6adb9a0602bcd75acd383e13c253e471edc9b189.tar.gz |
[AMDGPU] Emit predefined macro `__AMDGCN_CUMODE__`
Predefine __AMDGCN_CUMODE__ as 1 or 0 when compilation assumes CU or WGP modes.
If WGP mode is not supported, ignore -mno-cumode and emit a warning.
This is needed for implementing device functions like __smid
(https://github.com/ROCm-Developer-Tools/hipamd/blob/312dff7b794337aa040be0691acc78e9f968a8d2/include/hip/amd_detail/amd_device_functions.h#L957)
Reviewed by: Matt Arsenault, Artem Belevich, Brian Sumner
Differential Revision: https://reviews.llvm.org/D145343
Diffstat (limited to 'compiler-rt')
0 files changed, 0 insertions, 0 deletions