Skip to content

Commit c8a7755

Browse files
author
Diptorup Deb
committed
Update user guide steps to build libsyclinterface
1 parent e6cc99c commit c8a7755

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/docfiles/user_guides/QuickStart.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,21 +259,24 @@ library.
259259
set +xe
260260
rm -rf build
261261
mkdir build
262-
pushd build
262+
pushd build || exit 1
263263
264-
INSTALL_PREFIX=`pwd`/../install
264+
INSTALL_PREFIX=$(pwd)/../install
265265
rm -rf ${INSTALL_PREFIX}
266266
export ONEAPI_ROOT=/opt/intel/oneapi
267267
DPCPP_ROOT=${ONEAPI_ROOT}/compiler/latest/linux
268268
269269
cmake \
270-
-DCMAKE_BUILD_TYPE=Release \
270+
-DCMAKE_BUILD_TYPE=Debug \
271+
-DCMAKE_C_COMPILER=icx \
272+
-DCMAKE_CXX_COMPILER=dpcpp \
271273
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
272274
-DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} \
273-
-DDPCPP_INSTALL_DIR=${DPCPP_ROOT} \
274-
-DCMAKE_C_COMPILER:PATH=${DPCPP_ROOT}/bin/icx \
275-
-DCMAKE_CXX_COMPILER:PATH=${DPCPP_ROOT}/bin/dpcpp \
275+
-DDPCTL_ENABLE_L0_PROGRAM_CREATION=ON \
276276
-DDPCTL_BUILD_CAPI_TESTS=ON \
277+
-DDPCTL_GENERATE_COVERAGE=ON \
277278
..
278279
279280
make V=1 -n -j 4 && make check && make install
281+
282+
popd || exit 1

0 commit comments

Comments
 (0)