[PATCH] D122089: [CUDA] Add getTargetFeatures for the NVPTX toolchain

Zixuan Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 20:02:53 PDT 2022


zixuan-wu added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Cuda.cpp:648
+#define CASE_CUDA_VERSION(CUDA_VER, PTX_VER)                                   \
+  case CudaVersion::CUDA_##CUDA_VER:                                           \
+    PtxFeature = "+ptx" #PTX_VER;                                              \
----------------
It's same name as `CudaVersion` variable above, and it cause compile error. @jhuber6 
Maybe the error depends on host compiler version so that it does not report immediately.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122089



More information about the cfe-commits mailing list