[clang] [clang][AMDGPU] Don't define feature macros on host code (PR #83558)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 1 06:04:12 PST 2024
================
@@ -4306,10 +4306,10 @@
// Begin amdgcn tests ----------------
-// RUN: %clang -mcpu=gfx803 -E -dM %s -o - 2>&1 \
+// RUN: %clang -mcpu=gfx803 -E -dM -Xclang -fcuda-is-device %s -o - 2>&1 \
----------------
yxsamliu wrote:
C code compiled with target amdgcn should not depend on -fcuda-is-device since it is only compiled for device
https://github.com/llvm/llvm-project/pull/83558
More information about the cfe-commits
mailing list