forked from IntelPython/numba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_for_develop.sh
executable file
·38 lines (30 loc) · 963 Bytes
/
build_for_develop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
if [ -z "$CC" ]; then
CC=gcc
CXX=g++
fi
function usage() {
echo "usage: ./build_for_develop.sh [ [-h | --help] | [-d | --debug] ]"
}
DEBUG_FLAGS=""
while [ "$1" != "" ]; do
case $1 in
"-d" | "--debug" ) shift
DEBUG_FLAGS="-g -DDEBUG"
;;
"-h" | "--help" ) usage
exit
;;
* ) usage
exit
esac
shift
done
set -x
python setup.py clean --all
python setup.py build_ext --inplace
python setup.py develop
CC=clang
CXX=dpcpp
$CC -flto -target spir64-unknown-unknown -c -x cl -emit-llvm -cl-std=CL2.0 -Xclang -finclude-default-header numba/dppl/ocl/atomics/atomic_ops.cl -o numba/dppl/ocl/atomics/atomic_ops.bc
llvm-spirv -o numba/dppl/ocl/atomics/atomic_ops.spir numba/dppl/ocl/atomics/atomic_ops.bc