Skip to content

Commit 3e92e68

Browse files
committed
Catch hanging with gdb
1 parent d280393 commit 3e92e68

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

conda-recipe/run_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ set -e
3737

3838
$PYTHON -c "import dpnp; print(dpnp.__version__)"
3939
$PYTHON -m dpctl -f
40-
$PYTHON -m pytest -ra -sv --pyargs dpnp
40+
# $PYTHON -m pytest -ra -sv --pyargs dpnp
41+
timeout --signal=SIGINT 30m gdb --batch -ex "run" --ex "thread apply all bt" --ex "quit" --args "$PYTHON" -m pytest -ra -sv --pyargs dpnp

dpnp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
mypath = os.path.dirname(os.path.realpath(__file__))
3131

3232
# workaround against hanging in OneMKL calls and in DPCTL
33-
# os.environ.setdefault("SYCL_QUEUE_THREAD_POOL_SIZE", "6")
33+
os.environ.setdefault("SYCL_QUEUE_THREAD_POOL_SIZE", "6")
3434

3535
import dpctl
3636

0 commit comments

Comments
 (0)