From 21676f0b84e265a68f0bd372ee18fdfc8ea6f7e5 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 15 Feb 2023 07:41:23 -0600 Subject: [PATCH] Updae example3 building from debug build script --- 0.build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/0.build.sh b/0.build.sh index 59df4dc85719..b1a2a29ec0ae 100755 --- a/0.build.sh +++ b/0.build.sh @@ -25,7 +25,8 @@ CC=icpx python setup.py build_ext --inplace echo echo =========example3============== -icpx -fsycl -g -fPIC dpnp/backend/examples/example3.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example3 +DPCTL_INCLUDES=$(python -m dpctl --includes) +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 # LD_DEBUG=libs,bindings,symbols ./example3 ./example3 @@ -47,7 +48,7 @@ icpx -fsycl -g -fPIC dpnp/backend/examples/example3.cpp -Idpnp -Idpnp/backend/in # strings /usr/share/miniconda/envs/dpnp*/lib/libstdc++.so | grep GLIBCXX | sort -n -# echo +echo echo =========example1============== # LD_DEBUG=libs,bindings,symbols python examples/example1.py # LD_DEBUG=libs python examples/example1.py