[clang] [llvm] [clang][Driver] Add HIPAMD Driver support for AMDGCN flavoured SPIR-V (PR #95061)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 16:50:56 PDT 2024


================
@@ -128,12 +128,13 @@ enum class CudaArch {
   GFX12_GENERIC,
   GFX1200,
   GFX1201,
+  AMDGCNSPIRV,
   Generic, // A processor model named 'generic' if the target backend defines a
            // public one.
   LAST,
 
   CudaDefault = CudaArch::SM_52,
-  HIPDefault = CudaArch::GFX906,
+  HIPDefault = CudaArch::AMDGCNSPIRV,
----------------
jhuber6 wrote:

Why was the default changed here? The default here is just what HIP compilation gives without an explicit arch. Is this intentional?

https://github.com/llvm/llvm-project/pull/95061


More information about the llvm-commits mailing list