Skip to content

Commit cf26a92

Browse files
committed
ci: remove GitHub Actions unit-test workflow
1 parent 0eaac5a commit cf26a92

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/python-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python application
55

66
on:
77
push:
8-
branches: [ "main", "keren/v2.0" ]
8+
branches: []
99
pull_request:
10-
branches: [ "main", "keren/v2.0" ]
10+
branches: []
1111

1212
permissions:
1313
contents: read

tests/test_autotune_add.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def test_autotune_add_inrange():
3737
This test uses n_elements = 128, matching the size of the input tensors.
3838
It should NOT cause any out-of-bound access.
3939
"""
40-
x = torch.randn(128)
41-
y = torch.randn(128)
40+
x = torch.randn(128, device='cuda')
41+
y = torch.randn(128, device='cuda')
4242
out = torch.empty_like(x)
4343

4444
# The kernel launch uses n_elements=128, aligned with the tensor size.
@@ -57,8 +57,8 @@ def test_autotune_add_out_of_bound():
5757
This test deliberately sets n_elements = 256, exceeding the actual buffer size (128).
5858
It will likely cause out-of-bound reads/writes, which may trigger errors or warnings.
5959
"""
60-
x = torch.randn(128)
61-
y = torch.randn(128)
60+
x = torch.randn(128, device='cuda')
61+
y = torch.randn(128, device='cuda')
6262
out = torch.empty_like(x)
6363

6464
# The kernel launch uses n_elements=256, exceeding the valid tensor size.

tests/test_print_traceback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def kernel_A(ptr, n):
2424
tl.store(ptr + pid, val)
2525

2626
def test_print_nested_functions():
27-
x = torch.arange(4, dtype=torch.float32)
27+
x = torch.arange(4, device='cuda', dtype=torch.float32)
2828
print("Input:", x)
2929

3030
# We'll launch a grid bigger than x.numel() to force a out-of-bounds error

0 commit comments

Comments
 (0)