Skip to content

Commit d22214c

Browse files
authored
Updae example3 building from debug build script (#1298)
1 parent 19715de commit d22214c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

0.build.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ CC=icpx python setup.py build_ext --inplace
2525

2626
echo
2727
echo =========example3==============
28-
icpx -fsycl -g -fPIC dpnp/backend/examples/example3.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example3
28+
DPCTL_INCLUDES=$(python -m dpctl --includes)
29+
icpx -fsycl -g -O0 -ggdb3 -fPIC dpnp/backend/examples/example3.cpp $DPCTL_INCLUDES -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example3
2930
# LD_DEBUG=libs,bindings,symbols ./example3
3031
./example3
3132

@@ -47,7 +48,7 @@ icpx -fsycl -g -fPIC dpnp/backend/examples/example3.cpp -Idpnp -Idpnp/backend/in
4748
# strings /usr/share/miniconda/envs/dpnp*/lib/libstdc++.so | grep GLIBCXX | sort -n
4849

4950

50-
# echo
51+
echo
5152
echo =========example1==============
5253
# LD_DEBUG=libs,bindings,symbols python examples/example1.py
5354
# LD_DEBUG=libs python examples/example1.py

0 commit comments

Comments
 (0)