[PATCH] D120272: [CUDA] Add driver support for compiling CUDA with the new driver

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 4 11:16:33 PST 2022


JonChesterfield added inline comments.


================
Comment at: clang/lib/Driver/Driver.cpp:4132-4134
+      Archs.insert(CudaArchToString(CudaArch::SM_35));
+    else if (Kind == Action::OFK_HIP)
+      Archs.insert(CudaArchToString(CudaArch::GFX803));
----------------
tra wrote:
> If we do not have constants for the default CUDA/HIP arch yet, we should probably add them and use them here.
Defaulting hip to gfx803 is unlikely to be helpful. It won't run on other architectures, i.e. there's no conservative default that will run on most things. I guess that's an existing quirk of the hip toolchain?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120272/new/

https://reviews.llvm.org/D120272



More information about the cfe-commits mailing list