Skip to content

Commit

Permalink
[HIPIFY][doc] Added -DLLVM_INCLUDE_TESTS=OFF to LLVM build command …
Browse files Browse the repository at this point in the history
…lines

[Reasons]
+ No need for any LLVM tests for hipify-clang building or testing
+ Reduce build time and avoid possible issues with tests
  • Loading branch information
emankov committed Sep 17, 2023
1 parent 514e515 commit f9cebd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/hipify-clang.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ The binary can then be found at `./dist/hipify-clang` or at the folder specified
-DCMAKE_INSTALL_PREFIX=../dist \
-DLLVM_SOURCE_DIR=../llvm \
-DLLVM_TARGETS_TO_BUILD="X86;NVPTX" \
-DLLVM_INCLUDE_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release \
../llvm
make -j install
Expand All @@ -281,6 +282,7 @@ The binary can then be found at `./dist/hipify-clang` or at the folder specified
-DCMAKE_INSTALL_PREFIX=../dist \
-DLLVM_SOURCE_DIR=../llvm \
-DLLVM_TARGETS_TO_BUILD="NVPTX" \
-DLLVM_INCLUDE_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release \
../llvm
```
Expand All @@ -303,6 +305,7 @@ Run `Visual Studio 16 2019`, open the generated `LLVM.sln`, build all, and build
-DCMAKE_INSTALL_PREFIX=../dist \
-DLLVM_TARGETS_TO_BUILD="X86;NVPTX" \
-DLLVM_ENABLE_PROJECTS="clang" \
-DLLVM_INCLUDE_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release \
../llvm-project/llvm
make -j install
Expand All @@ -316,6 +319,7 @@ Run `Visual Studio 16 2019`, open the generated `LLVM.sln`, build all, and build
-DCMAKE_INSTALL_PREFIX=../dist \
-DLLVM_TARGETS_TO_BUILD="NVPTX" \
-DLLVM_ENABLE_PROJECTS="clang" \
-DLLVM_INCLUDE_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release \
../llvm-project/llvm
```
Expand Down

0 comments on commit f9cebd4

Please sign in to comment.