[Mlir-commits] [mlir] [mlir] Decouple NVPTX target from CUDA toolkit presence (PR #93008)

Fabian Mora llvmlistbot at llvm.org
Wed May 22 03:30:17 PDT 2024


https://github.com/fabianmcg requested changes to this pull request.

They're already decoupled, `MLIR_ENABLE_CUDA_CONVERSIONS` is an alias for checking whether the `NVPTX` target was built, see:
https://github.com/llvm/llvm-project/blob/main/mlir/CMakeLists.txt#L115C1-L119

Also, `moduleToObject` will always succeed if `NVPTX` was built and the compilation target is `offload` or `ptx`, I know this because I use it frequently in a machine without the toolkit.


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


More information about the Mlir-commits mailing list