-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdbg_build.sh
More file actions
executable file
·32 lines (26 loc) · 980 Bytes
/
dbg_build.sh
File metadata and controls
executable file
·32 lines (26 loc) · 980 Bytes
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
#!/bin/bash
set +xe
rm -rf build
mkdir build
pushd build || exit 1
INSTALL_PREFIX=$(pwd)/../install
rm -rf ${INSTALL_PREFIX}
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER=icx \
-DCMAKE_CXX_COMPILER=icpx \
-DCMAKE_CXX_FLAGS=-fsycl \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
-DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} \
-DDPCTL_ENABLE_L0_PROGRAM_CREATION=ON \
-DDPCTL_BUILD_CAPI_TESTS=ON \
..
make V=1 -n -j 4 && make check && make install
# Turn on to generate coverage report html files reconfigure with
# -DDPCTL_GENERATE_COVERAGE=ON and then
# make lcov-genhtml
# For more verbose tests use:
# cd tests
# ctest -V --progress --output-on-failure -j 4
# cd ..
popd || exit 1