Skip to content

Build on Fedora #892

Answered by stumpOS
stumpOS asked this question in Triton-MLIR
Nov 19, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

(repeating this here so I can mark it as answer)
The following worked for me:

(compiled with clang 15.0.2)
Step 1: Build llvm 14.0.6 from source. Set the environment variables LLVM_INCLUDE_DIRS, LLVM_LIBRARY_DIR to point to the include and lib. For example, I did the following:

inside /home/stumpos/compilers/llvm-project-14.0.6.src/build:
cmake ../llvm -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="mlir" -DLLVM_TARGETS_TO_BUILD="X86;NVPTX;AMDGPU" -DLLVM_INCLUDE_TESTS=OFF

inside triton's CMake (this is so that when I call setup the environment variables are not overridden by paths that point to an incompatible compiler; not the recommended way to do this obviously)
set(LLVM_INC…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ptillet
Comment options

@stumpOS
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by stumpOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants