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

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri May 24 02:56:58 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)
----------------
ftynse wrote:

Can we add an INFO message in the `else()` branch below saying "CUDA not found" rather than always saying "MLIR default CUDA toolkit path"?

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


More information about the Mlir-commits mailing list