Skip to content

[DEBUG] Investigate crash in tests on Windows #2287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -50,6 +50,7 @@ build:
test:
requires:
- pytest
- pytest-repeat
- setuptools

about:
47 changes: 47 additions & 0 deletions conda-recipe/run_test.bat
Original file line number Diff line number Diff line change
@@ -8,6 +8,11 @@ if defined ONEAPI_ROOT (
set "DPLROOT=%ONEAPI_ROOT%\dpl\latest"
)

echo "DPCPPROOT=%DPCPPROOT%"
echo "MKLROOT=%MKLROOT%"
echo "TBBROOT=%TBBROOT%"
echo "DPLROOT=%DPLROOT%"

REM if DPCPPROOT is specified (work with custom DPCPP)
if defined DPCPPROOT (
call "%DPCPPROOT%\env\vars.bat"
@@ -37,5 +42,47 @@ if %errorlevel% neq 0 exit 1
"%PYTHON%" -m dpctl -f
if %errorlevel% neq 0 exit 1

echo "Test only dpnp.tests.test_usm_type::TestFft::test_rfftn"

REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test-wheel-conda-stable/236
"%PYTHON%" -m pytest --count 300 -ra -v --pyargs dpnp.tests.test_usm_type::TestFft::test_rfftn
if %errorlevel% neq 0 exit 1

"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type::TestFft::test_fft
if %errorlevel% neq 0 exit 1

echo "Test only dpnp.tests.test_usm_type::test_norm"

REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.12/job/test-stable/137/
"%PYTHON%" -m pytest --count 300 -ra -v --pyargs dpnp.tests.test_usm_type::test_norm
if %errorlevel% neq 0 exit 1

echo "Test only dpnp.tests.test_usm_type::TestFft::test_fftfreq"

REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test-stable/120/
"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type::TestFft::test_fftfreq
if %errorlevel% neq 0 exit 1

echo "Test only dpnp.tests.test_usm_type::TestFft"

REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test/1713/
REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test-wheel-conda-stable/232/
REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.12/job/test-wheel-conda-stable/234/
"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type::TestFft
if %errorlevel% neq 0 exit 1

echo "Test only dpnp.tests.test_usm_type"

"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type
if %errorlevel% neq 0 exit 1

echo "Test only dpnp.tests.test_indexing"

REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test-wheel-conda/1733/
"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_indexing
if %errorlevel% neq 0 exit 1

echo "Test everything"

"%PYTHON%" -m pytest -ra --pyargs dpnp
if %errorlevel% neq 0 exit 1
1 change: 1 addition & 0 deletions conda-recipe/run_test.sh
Original file line number Diff line number Diff line change
@@ -37,4 +37,5 @@ set -e

$PYTHON -c "import dpnp; print(dpnp.__version__)"
$PYTHON -m dpctl -f
$PYTHON -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type::test_2in_1out
$PYTHON -m pytest -ra --pyargs dpnp
10 changes: 6 additions & 4 deletions dpnp/tests/test_usm_type.py
Original file line number Diff line number Diff line change
@@ -16,7 +16,8 @@
is_win_platform,
)

list_of_usm_types = ["device", "shared", "host"]
# list_of_usm_types = ["device", "shared", "host"]
list_of_usm_types = ["shared"]


@pytest.mark.parametrize("usm_type_x", list_of_usm_types, ids=list_of_usm_types)
@@ -573,9 +574,10 @@ def test_meshgrid(usm_type_x, usm_type_y):


@pytest.mark.parametrize("usm_type", list_of_usm_types, ids=list_of_usm_types)
@pytest.mark.parametrize(
"ord", [None, -dp.inf, -2, -1, 1, 2, 3, dp.inf, "fro", "nuc"]
)
# @pytest.mark.parametrize(
# "ord", [None, -dp.inf, -2, -1, 1, 2, 3, dp.inf, "fro", "nuc"]
# )
@pytest.mark.parametrize("ord", [None])
@pytest.mark.parametrize(
"axis",
[-1, 0, 1, (0, 1), (-2, -1), None],