Skip to content

Commit f595da6

Browse files
authored
Change default testing options - add parallel option for GPU runs (#728)
1 parent fcc9cc2 commit f595da6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ message(STATUS "LLVM_DEFINITIONS: ${LLVM_DEFINITIONS}")
268268
add_definitions(${LLVM_DEFINITIONS})
269269

270270
set(LLVM_LIT_ARGS "-sv" CACHE STRING "lit default options")
271+
if (IMEX_ENABLE_SYCL_RUNTIME OR IMEX_ENABLE_L0_RUNTIME)
272+
set(LLVM_LIT_ARGS "-j 4 ${LLVM_LIT_ARGS}") # do not stress GPU
273+
endif()
271274

272275
set(IMEX_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
273276
# LLVM_EXTERNAL_PROJECTS build puts library, executables and tools in LLVM's CMAKE_BINARY_DIR

dev_scripts/compile.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/sh
2+
3+
set -e
4+
set -vx
5+
6+
cd $(dirname "$0")/..
7+
mlir_dir=$(pwd -P)
8+
9+
cd ..
10+
if test -d llvm-project
11+
then
12+
cd llvm-project
13+
git clean -fd
14+
else
15+
git clone https://github.com/llvm/llvm-project.git
16+
cd llvm-project
17+
fi
18+
19+
git reset --hard HEAD
20+
git checkout $(cat $mlir_dir/build_tools/llvm_version.txt)
21+
git apply $mlir_dir/build_tools/patches/*
22+
cmake -G Ninja -B build -S llvm \
23+
-DLLVM_ENABLE_PROJECTS=mlir \
24+
-DLLVM_BUILD_EXAMPLES=ON \
25+
-DLLVM_TARGETS_TO_BUILD="X86" \
26+
-DCMAKE_BUILD_TYPE=Release \
27+
-DLLVM_ENABLE_ASSERTIONS=ON \
28+
-DLLVM_EXTERNAL_PROJECTS="Imex" \
29+
-DLLVM_EXTERNAL_IMEX_SOURCE_DIR=$mlir_dir
30+
31+
cmake --build build --target check-imex

0 commit comments

Comments
 (0)