File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,9 @@ message(STATUS "LLVM_DEFINITIONS: ${LLVM_DEFINITIONS}")
276
276
add_definitions (${LLVM_DEFINITIONS} )
277
277
278
278
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 ()
279
282
280
283
set (IMEX_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} )
281
284
# LLVM_EXTERNAL_PROJECTS build puts library, executables and tools in LLVM's CMAKE_BINARY_DIR
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments