[llvm] [mlir] [mlir] Replace MLIR_ENABLE_CUDA_CONVERSIONS with LLVM_HAS_NVPTX_TARGET (PR #93008)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 08:35:09 PDT 2024


================
@@ -47,7 +47,7 @@ add_mlir_dialect_library(MLIRNVVMTarget
   MLIRNVVMToLLVMIRTranslation
   )
 
-if(MLIR_ENABLE_CUDA_CONVERSIONS)
+if ("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
   # Find the CUDA toolkit.
   find_package(CUDAToolkit)
----------------
joker-eph wrote:

This is marked resolved but I don't see the change?

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


More information about the llvm-commits mailing list