test_setup_strix_halo: gfx1103 is in the gfx11 WMMA list since the 780M change
This commit is contained in:
1 parent
818845ea10
commit
0601072dfc
1 file changed
+2
-2
@@ -91,12 +91,12 @@ class ExactArch(unittest.TestCase):
|
||||
|
||||
def test_matches_the_engines_header(self):
|
||||
"""include/strata/kernels/gfx_arch.hpp is the reference: gfx1151 has the WMMA kernels and the gfx1151 defaults;
|
||||
gfx1103 and gfx1152 are outside its list."""
|
||||
gfx1103 (Radeon 780M/760M, 0.1.44) shares the gfx11 WMMA kernels; gfx1152 is outside the list."""
|
||||
hpp = (ROOT / "include/strata/kernels/gfx_arch.hpp").read_text(encoding="utf-8")
|
||||
wmma = re.search(r"gfx_arch_is_gfx11_wmma.*?\n}", hpp, re.S).group(0)
|
||||
listed = set(re.findall(r'"(gfx\d+)"', wmma))
|
||||
self.assertIn("gfx1151", listed)
|
||||
self.assertNotIn("gfx1103", listed)
|
||||
self.assertIn("gfx1103", listed) # 0.1.44: the 780M runs the gfx11 WMMA kernels (decode x1.53)
|
||||
self.assertNotIn("gfx1152", listed)
|
||||
self.assertIn('gfx_arch_is(gcn, "gfx1151")', hpp)
|
||||
self.assertEqual(setup.STRIX_HALO_ARCH, "gfx1151")
|
||||
|
||||
Reference in new issue
Block a user