[compiler-rt] [compiler-rt] Initial support for builtins on GPU targets (PR #95304)
Yaxun Liu via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 07:38:15 PDT 2024
yxsamliu wrote:
If `-DCMAKE_C_COMPILER_TARGET=amdgcn-amd-amdhsa -DCMAKE_CXX_COMPILER_TARGET=amdgcn-amd-amdhsa` is specified, will cmake only build compiler-rt builtin lib for amdgcn (not building compiler-rt builtin lib for the default host target)?
It is desirable to build compiler-rt builtin for both the default host target and amdgcn target in one build. And the build for amdgcn target can be optional and controlled by a cmake variable. You may use a similar approach in https://github.com/llvm/llvm-project/pull/71978/files to achieve that.
https://github.com/llvm/llvm-project/pull/95304
More information about the llvm-commits
mailing list