Skip to content

Commit

Permalink
Don't specify TritonSPIRV translation library directly in main `CMa…
Browse files Browse the repository at this point in the history
…keLists.txt` (#2887)

Part of #2030

Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev authored Dec 1, 2024
1 parent 3f6ffa5 commit c42f4a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ if(TRITON_BUILD_PYTHON_MODULE)
set(TRITON_LIBRARIES
${triton_libs}
${triton_plugins}
TritonSPIRV

# mlir
MLIRAMDGPUDialect
Expand Down
3 changes: 3 additions & 0 deletions lib/Target/SPIRV/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ add_mlir_translation_library(TritonSPIRV

# Add SPIRV-LLVM-Translator include directory.
target_include_directories(TritonSPIRV PRIVATE ${SPIRVToLLVMTranslator_INCLUDE_DIR})

set_property(GLOBAL APPEND PROPERTY TRITON_LIBS TritonSPIRV)
llvm_update_compile_flags(TritonSPIRV)

0 comments on commit c42f4a7

Please sign in to comment.