Skip to content

Commit b819852

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents df98da6 + f595da6 commit b819852

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
@@ -276,6 +276,9 @@ message(STATUS "LLVM_DEFINITIONS: ${LLVM_DEFINITIONS}")
276276
add_definitions(${LLVM_DEFINITIONS})
277277

278278
set(LLVM_LIT_ARGS "-sv" CACHE STRING "lit default options")
279+
if (IMEX_ENABLE_SYCL_RUNTIME OR IMEX_ENABLE_L0_RUNTIME)
280+
set(LLVM_LIT_ARGS "-j 4 ${LLVM_LIT_ARGS}") # do not stress GPU
281+
endif()
279282

280283
set(IMEX_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
281284
# 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)