diff options
| author | tyb0807 <sontuan.vu119@gmail.com> | 2024-05-24 17:31:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-24 17:31:28 +0200 |
| commit | 8178a3ad1b16e3c06e3bb8d91a8412bf329be3e0 (patch) | |
| tree | b39e81fcff00011cf35325c63f7c1e8c6d4f6897 /mlir/CMakeLists.txt | |
| parent | 4ebe9bba59389b0788ca01ec3f4bd2cb7f567a17 (diff) | |
[mlir] Replace MLIR_ENABLE_CUDA_CONVERSIONS with LLVM_HAS_NVPTX_TARGET (#93008)
LLVM_HAS_NVPTX_TARGET is automatically set depending on whether NVPTX
was enabled when building LLVM. Use this instead of manually defining
MLIR_ENABLE_CUDA_CONVERSIONS (whose name is a bit misleading btw).
Diffstat (limited to 'mlir/CMakeLists.txt')
| -rw-r--r-- | mlir/CMakeLists.txt | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt index 4c0ef8387b8d..9f0b0d68b816 100644 --- a/mlir/CMakeLists.txt +++ b/mlir/CMakeLists.txt @@ -110,14 +110,6 @@ else() set(MLIR_ENABLE_EXECUTION_ENGINE 0) endif() -# Build the CUDA conversions and run according tests if the NVPTX backend -# is available -if ("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD) - set(MLIR_ENABLE_CUDA_CONVERSIONS 1) -else() - set(MLIR_ENABLE_CUDA_CONVERSIONS 0) -endif() - # Build the ROCm conversions and run according tests if the AMDGPU backend # is available. if ("AMDGPU" IN_LIST LLVM_TARGETS_TO_BUILD) |
