https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115740
--- Comment #17 from Zhao Wei Liew <zhaoweiliew at gmail dot com> --- Oops, I meant #if defined(__clang__) && (defined(__CUDA__) || defined(__HIP__)) The __HIP__ macro comes from https://clang.llvm.org/docs/HIPSupport.html#predefined-macros