mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 06:58:11 -05:00
hotfix: linearizer test fixup
This commit is contained in:
@@ -441,7 +441,7 @@ class TestLinearizer(unittest.TestCase):
|
||||
assert accs[0].dtype == stores[0].src[-1].dtype == dtypes.float.vec(4)
|
||||
assert stores[0].src[0].op is UOps.DEFINE_LOCAL
|
||||
# the second store is to gds with no upcasts
|
||||
assert accs[1].dtype == stores[1].src[-1].dtype == dtypes.float
|
||||
assert accs[1].dtype == stores[1].src[2].dtype == dtypes.float
|
||||
assert stores[1].src[0].op is UOps.DEFINE_GLOBAL
|
||||
|
||||
@unittest.skipIf(CI and Device.DEFAULT in {"AMD"}, "AMD CI doesn't support multiple sync threads yet")
|
||||
@@ -794,7 +794,7 @@ class TestLinearizer(unittest.TestCase):
|
||||
assert stores[0].src[-1].op is not UOps.CAST
|
||||
|
||||
# the global store doesn't change
|
||||
assert stores[1].src[-1].dtype == dtypes.float
|
||||
assert stores[1].src[2].dtype == dtypes.float
|
||||
|
||||
@unittest.skipUnless(Device[Device.DEFAULT].renderer.supports_float4, "test requires float4")
|
||||
def test_skip_unmatching_upcasts(self):
|
||||
|
||||
Reference in New Issue
Block a user