File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 2
2
set +xe
3
3
rm -rf build
4
4
mkdir build
5
- pushd build
5
+ pushd build || exit 1
6
6
7
- INSTALL_PREFIX=` pwd` /../install
7
+ INSTALL_PREFIX=$( pwd) /../install
8
8
rm -rf ${INSTALL_PREFIX}
9
9
10
10
cmake \
11
11
-DCMAKE_BUILD_TYPE=Debug \
12
12
-DCMAKE_C_COMPILER=icx \
13
- -DCMAKE_CXX_COMPILER=dpcpp \
13
+ -DCMAKE_CXX_COMPILER=icpx \
14
+ -DCMAKE_CXX_FLAGS=-fsycl \
14
15
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
15
16
-DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} \
16
17
-DDPCTL_ENABLE_L0_PROGRAM_CREATION=ON \
17
18
-DDPCTL_BUILD_CAPI_TESTS=ON \
18
- -DDPCTL_GENERATE_COVERAGE=ON \
19
19
..
20
20
21
21
make V=1 -n -j 4 && make check && make install
22
22
23
- # Turn on to generate coverage report html files
24
- make lcov-genhtml
23
+ # Turn on to generate coverage report html files reconfigure with
24
+ # -DDPCTL_GENERATE_COVERAGE=ON and then
25
+ # make lcov-genhtml
25
26
26
27
# For more verbose tests use:
27
28
# cd tests
28
29
# ctest -V --progress --output-on-failure -j 4
29
30
# cd ..
30
31
31
- popd
32
+ popd || exit 1
You can’t perform that action at this time.
0 commit comments