VALIDATE_WITH_CPU [pr] (#9488)

* VALIDATE_WITH_CPU [pr]

* fix test
This commit is contained in:
George Hotz
2025-03-18 15:15:04 +08:00
committed by GitHub
parent 935cd01f56
commit 117b7a16ef
8 changed files with 28 additions and 13 deletions

View File

@@ -99,7 +99,7 @@ class TestRandomness(unittest.TestCase):
@unittest.skipIf(getenv("PTX"), "fails with PTX")
def test_threefry_doesnt_use_long(self):
for ei in lower_schedule(Tensor.rand(20).schedule()):
for (_,ei) in lower_schedule(Tensor.rand(20).schedule()):
if isinstance(ei.prg, CompiledRunner):
for u in ei.prg.p.uops:
self.assertNotIn(u.dtype, {dtypes.long, dtypes.ulong}, msg=f"long found in {ei.prg.p.name}")