From fa02105546fd16f0941be86918e5d3aea4f577a8 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Fri, 10 Apr 2026 06:47:00 +0800 Subject: [PATCH] hotfix: pin amd isa xml version --- tinygrad/renderer/amd/generate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinygrad/renderer/amd/generate.py b/tinygrad/renderer/amd/generate.py index 0d44965760..b2b3d384c2 100644 --- a/tinygrad/renderer/amd/generate.py +++ b/tinygrad/renderer/amd/generate.py @@ -13,7 +13,8 @@ ARCHS = { "rdna4": {"xml": "amdgpu_isa_rdna4.xml", "pdf": "https://docs.amd.com/api/khub/documents/uQpkEvk3pv~kfAb2x~j4uw/content"}, "cdna": {"xml": "amdgpu_isa_cdna4.xml", "pdf": "https://www.amd.com/content/dam/amd/en/documents/instinct-tech-docs/instruction-set-architectures/amd-instinct-cdna4-instruction-set-architecture.pdf"}, } -XML_URL = "https://gpuopen.com/download/machine-readable-isa/latest/" +# Pin the September 2025 XML bundle because newer `latest` changed WMMA format bit sizes across archs and breaks generation. +XML_URL = "https://gpuopen.com/download/AMD_GPU_MR_ISA_XML_2025_09_05.zip" # Map XML encoding names to codebase names NAME_MAP = {"VOP3_SDST_ENC": "VOP3SD", "VOP3_SDST_ENC_LIT": "VOP3SD_LIT", "VOP3_SDST_ENC_DPP16": "VOP3SD_DPP16", "VOP3_SDST_ENC_DPP8": "VOP3SD_DPP8", "VOPDXY": "VOPD", "VOPDXY_LIT": "VOPD_LIT", "VDS": "DS"}