Skip to content

Commit ab0745a

Browse files
[Intel] Fix test_function_arguments
Signed-off-by: Whitney Tsang <[email protected]>
1 parent aa84a03 commit ab0745a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/test/unit/runtime/test_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def cache_hook(*args, **kwargs):
577577
assert pointer_range_32 == [(0, )]
578578

579579

580-
def test_function_arguments():
580+
def test_function_arguments(device):
581581

582582
@triton.jit
583583
def func1():
@@ -601,7 +601,7 @@ def kernel(Y, fn: tl.constexpr, fn_args):
601601

602602
JITFunction.cache_hook = None
603603
JITFunction.compiled_hook = None
604-
y = torch.zeros((5, ), dtype=torch.int32, device="cuda")
604+
y = torch.zeros((5, ), dtype=torch.int32, device=device)
605605
kernel[(1, )](y[0], func1, tuple())
606606
kernel[(1, )](y[1], func2, tuple())
607607
kernel[(1, )](y[2], func3, (3, ))

0 commit comments

Comments
 (0)