Skip to content

Commit 39aa6c5

Browse files
Skip tensor tests by default in conda recipe to avoid OOM (#2860)
Tensor tests require significant device memory and frequently cause OOM crashes on internal CI machines during conda package testing (mostly on Linux) often manifesting as Python abort signals instead of regular failures. This PR sets `SKIP_TENSOR_TESTS=1` by default in `conda recipe` test scripts to avoid such crashes. Users or CI environments can opt in by setting `SKIP_TENSOR_TESTS=0` on systems with sufficient memory.
1 parent 80c49be commit 39aa6c5

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Also, that release drops support for Python 3.9, making Python 3.10 the minimum
5959
* Updated QR tests to avoid element-wise comparisons for `raw` and `r` modes [#2785](https://github.com/IntelPython/dpnp/pull/2785)
6060
* Moved all SYCL kernel functors from `backend/extensions/` to a unified `backend/kernels/` directory hierarchy [#2816](https://github.com/IntelPython/dpnp/pull/2816)
6161
* `dpnp` uses pybind11 3.0.3 [#2834](https://github.com/IntelPython/dpnp/pull/2834)
62+
* Disabled `dpnp.tensor` tests by default in `conda build --test` to prevent OOM failures during package testing. Set `SKIP_TENSOR_TESTS=0` to re-enable them on systems with enough memory [#2860](https://github.com/IntelPython/dpnp/pull/2860)
6263

6364
### Deprecated
6465

conda-recipe/run_test.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ if not defined PYTHON (
3131
)
3232

3333

34+
REM Skip tensor tests by default to avoid OOM in conda builds.
35+
REM Set SKIP_TENSOR_TESTS=0 to run them on machines with enough memory.
36+
if not defined SKIP_TENSOR_TESTS (
37+
set "SKIP_TENSOR_TESTS=1"
38+
)
39+
3440
"%PYTHON%" -c "import dpnp; print(dpnp.__version__)"
3541
if %errorlevel% neq 0 exit 1
3642

conda-recipe/run_test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ if [ -z "${PYTHON}" ]; then
3333
PYTHON=$PREFIX/bin/python
3434
fi
3535

36+
# Skip tensor tests by default to avoid OOM in conda builds.
37+
# Set SKIP_TENSOR_TESTS=0 to run them on machines with enough memory.
38+
if [ -z "${SKIP_TENSOR_TESTS}" ]; then
39+
export SKIP_TENSOR_TESTS=1
40+
fi
41+
3642
set -e
3743

3844
$PYTHON -c "import dpnp; print(dpnp.__version__)"

0 commit comments

Comments
 (0)