mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[FRONTEND] improved error messages (#2363)
this is a combination of #1774 and #2006, which I cannot edit but fail CI pre-commit hook
This commit is contained in:
@@ -746,7 +746,7 @@ def test_invalid_pid_axis(device):
|
||||
def _kernel(dst):
|
||||
pid = tl.program_id(20)
|
||||
|
||||
with pytest.raises(triton.CompilationError, match=r"program_id must be in \[0,3\]"):
|
||||
with pytest.raises(triton.CompilationError, match=r"program_id axis must be 0, 1, or 2 but got 20"):
|
||||
_kernel[(1,)](dst)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user