Skip to content
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

Enable all tests from test_debug.py on XPU #2755

Open
anmyachev opened this issue Nov 19, 2024 · 2 comments
Open

Enable all tests from test_debug.py on XPU #2755

anmyachev opened this issue Nov 19, 2024 · 2 comments
Assignees
Labels
bug Something isn't working tests: ut

Comments

@anmyachev
Copy link
Contributor

anmyachev commented Nov 19, 2024

This comes from #2754

It looks like abort is expected here (for XPU), but the Python code is expecting RuntimeError, which doesn't work right now for some reason.

Docs:

Example of a error:
test/unit/test_debug.py::test_device_assert[False-False-True-False] Fatal Python error: Aborted

Current thread 0x00007f6c96d8fb80 (most recent call first):
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/torch/xpu/__init__.py", line 395 in synchronize
  File ".../intel-xpu-backend-for-triton/python/test/unit/test_debug.py", line 29 in test_device_assert
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/python.py", line 162 in pytest_pyfunc_call
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_callers.py", line 103 in _multicall
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_hooks.py", line 513 in __call__
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/python.py", line 1632 in runtest
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/runner.py", line 173 in pytest_runtest_call
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_callers.py", line 103 in _multicall
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_hooks.py", line 513 in __call__
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/runner.py", line 241 in <lambda>
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/runner.py", line 341 in from_call
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/runner.py", line 240 in call_and_report
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/runner.py", line 135 in runtestprotocol
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pytest_forked/__init__.py", line 68 in runforked
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/py/_process/forkedfunc.py", line 65 in _child
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/py/_process/forkedfunc.py", line 50 in __init__
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pytest_forked/__init__.py", line 73 in forked_run_report
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pytest_forked/__init__.py", line 51 in pytest_runtest_protocol
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_callers.py", line 103 in _multicall
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_hooks.py", line 513 in __call__
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/main.py", line 364 in pytest_runtestloop
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_callers.py", line 103 in _multicall
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_hooks.py", line 513 in __call__
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/main.py", line 339 in _main
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/main.py", line 285 in wrap_session
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/main.py", line 332 in pytest_cmdline_main
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_callers.py", line 103 in _multicall
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/pluggy/_hooks.py", line 513 in __call__
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/config/__init__.py", line 178 in main
  File ".../.conda/envs/xpu/lib/python3.10/site-packages/_pytest/config/__init__.py", line 206 in console_main
  File ".../.conda/envs/xpu/bin/pytest", line 8 in <module>

Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, torch._C, torch._C._dynamo.autograd_compiler, torch._C._dynamo.eval_frame, torch._C._dynamo.guards, torch._C._dynamo.utils, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special, spirv_utils, __triton_launcher (total: 26)
FAILED

=============================================================================== FAILURES ================================================================================
______________________________________________________________ test_device_assert[False-False-True-False] _______________________________________________________________
:-1: running the test CRASHED with signal 6
---------------------------------------------------------------------------- captured stderr ----------------------------------------------------------------------------
AssertHandler::printMessage
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [0,0,0], local id: [0,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [1,0,0], local id: [1,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [2,0,0], local id: [2,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [3,0,0], local id: [3,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [4,0,0], local id: [4,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [5,0,0], local id: [5,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [6,0,0], local id: [6,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [7,0,0], local id: [7,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [8,0,0], local id: [8,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [9,0,0], local id: [9,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [10,0,0], local id: [10,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [11,0,0], local id: [11,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [12,0,0], local id: [12,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [13,0,0], local id: [13,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [14,0,0], local id: [14,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [15,0,0], local id: [15,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [16,0,0], local id: [16,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [17,0,0], local id: [17,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [18,0,0], local id: [18,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [19,0,0], local id: [19,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [20,0,0], local id: [20,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [21,0,0], local id: [21,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [22,0,0], local id: [22,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [23,0,0], local id: [23,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [24,0,0], local id: [24,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [25,0,0], local id: [25,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [26,0,0], local id: [26,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [27,0,0], local id: [27,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [28,0,0], local id: [28,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [29,0,0], local id: [29,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [30,0,0], local id: [30,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [31,0,0], local id: [31,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [64,0,0], local id: [64,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [65,0,0], local id: [65,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [66,0,0], local id: [66,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [67,0,0], local id: [67,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [68,0,0], local id: [68,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [69,0,0], local id: [69,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [70,0,0], local id: [70,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [71,0,0], local id: [71,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [72,0,0], local id: [72,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [73,0,0], local id: [73,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [74,0,0], local id: [74,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [75,0,0], local id: [75,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [76,0,0], local id: [76,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [77,0,0], local id: [77,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [78,0,0], local id: [78,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [79,0,0], local id: [79,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [80,0,0], local id: [80,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [81,0,0], local id: [81,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [82,0,0], local id: [82,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [83,0,0], local id: [83,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [84,0,0], local id: [84,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [85,0,0], local id: [85,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [86,0,0], local id: [86,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [87,0,0], local id: [87,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [88,0,0], local id: [88,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [89,0,0], local id: [89,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [90,0,0], local id: [90,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [91,0,0], local id: [91,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [92,0,0], local id: [92,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [93,0,0], local id: [93,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [94,0,0], local id: [94,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [95,0,0], local id: [95,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [32,0,0], local id: [32,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [33,0,0], local id: [33,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [34,0,0], local id: [34,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [35,0,0], local id: [35,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [36,0,0], local id: [36,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [37,0,0], local id: [37,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [38,0,0], local id: [38,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [39,0,0], local id: [39,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [40,0,0], local id: [40,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [41,0,0], local id: [41,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [42,0,0], local id: [42,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [43,0,0], local id: [43,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [44,0,0], local id: [44,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [45,0,0], local id: [45,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [46,0,0], local id: [46,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [47,0,0], local id: [47,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [48,0,0], local id: [48,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [49,0,0], local id: [49,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [50,0,0], local id: [50,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [51,0,0], local id: [51,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [52,0,0], local id: [52,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [53,0,0], local id: [53,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [54,0,0], local id: [54,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [55,0,0], local id: [55,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [56,0,0], local id: [56,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [57,0,0], local id: [57,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [58,0,0], local id: [58,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [59,0,0], local id: [59,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [60,0,0], local id: [60,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [61,0,0], local id: [61,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [62,0,0], local id: [62,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [63,0,0], local id: [63,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [96,0,0], local id: [96,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [97,0,0], local id: [97,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [98,0,0], local id: [98,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [99,0,0], local id: [99,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [100,0,0], local id: [100,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [101,0,0], local id: [101,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [102,0,0], local id: [102,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [103,0,0], local id: [103,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [104,0,0], local id: [104,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [105,0,0], local id: [105,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [106,0,0], local id: [106,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [107,0,0], local id: [107,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [108,0,0], local id: [108,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [109,0,0], local id: [109,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [110,0,0], local id: [110,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [111,0,0], local id: [111,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [112,0,0], local id: [112,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [113,0,0], local id: [113,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [114,0,0], local id: [114,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [115,0,0], local id: [115,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [116,0,0], local id: [116,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [117,0,0], local id: [117,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [118,0,0], local id: [118,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [119,0,0], local id: [119,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [120,0,0], local id: [120,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [121,0,0], local id: [121,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [122,0,0], local id: [122,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [123,0,0], local id: [123,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [124,0,0], local id: [124,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [125,0,0], local id: [125,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [126,0,0], local id: [126,0,0] Assertion `test` failed.
.../intel-xpu-backend-for-triton/python/test/unit/test_debug.py:18: unknown: global id: [127,0,0], local id: [127,0,0] Assertion `test` failed.
======================================================================== short test summary info ========================================================================
FAILED test/unit/test_debug.py::test_device_assert[False-False-True-False]

It looks like we can only enable these tests using the previous approach with a subprocess and output analysis (like it was before triton-lang/triton@c54f988#diff-927d321ba6d63660e521f3b604ed7420f27c385efce7b9942183b5152db7b481)

@anmyachev anmyachev added bug Something isn't working tests: ut labels Nov 19, 2024
@anmyachev
Copy link
Contributor Author

@arunjose696 you can take this issue if you want :)

@arunjose696
Copy link
Contributor

arunjose696 commented Dec 9, 2024

This issue is related to a pytorch crash in xpu backend. A issue(pytorch/pytorch#142135) has been raised in pytorch with reproducer. Pytorch team has asked for SYCL compiler to help handle this scenario.

The only possible way of a temporary fix to enable the test(test_assert) would be using subprocess as mentioned in this issues first comment

(like it was before triton-lang/triton@c54f988#diff-927d321ba6d63660e521f3b604ed7420f27c385efce7b9942183b5152db7b481)

However the subprocess fix would require the kernels (@triton.jit) to be duplicated in a new file for the failing tests as it is not possible to pass jit_function as argument to subprocess.run() .

whitneywhtsang added a commit that referenced this issue Jan 9, 2025
This is the last PR to improve UT pass rate for PVC rolling driver. 
There are 21 remaining failures, which are tracked in
#2755 and
#2968.

Before:
```
debug: passed: 28, failed: 0, skipped: 20, xfailed: 0, total: 48, fixme: 0, pass rate (w/o xfailed): 58.33%
interpreter: passed: 6364, failed: 0, skipped: 1, xfailed: 697, total: 7062, fixme: 0, pass rate (w/o xfailed): 99.98%
all: passed: 18671, failed: 0, skipped: 23, xfailed: 1309, total: 20003, fixme: 48, pass rate (w/o xfailed): 99.88%
```
After:
```
debug: passed: 28, failed: 0, skipped: 19, xfailed: 0, total: 47, fixme: 0, pass rate (w/o xfailed): 59.57%
interpreter: passed: 6365, failed: 0, skipped: 0, xfailed: 697, total: 7062, fixme: 0, pass rate (w/o xfailed): 100.0%
all: passed: 18672, failed: 0, skipped: 21, xfailed: 1309, total: 20002, fixme: 48, pass rate (w/o xfailed): 99.89%
```

Signed-off-by: Whitney Tsang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests: ut
Projects
None yet
Development

No branches or pull requests

2 participants