From b6e574fcdf28f94f4f4ededbbdf6040f98afdc52 Mon Sep 17 00:00:00 2001 From: nimlgen <138685161+nimlgen@users.noreply.github.com> Date: Fri, 13 Jun 2025 23:07:56 +0300 Subject: [PATCH] am: smu 14.0.3 is smu 14.0.2 (#10714) --- autogen_stubs.sh | 4 ++-- .../runtime/autogen/am/{smu_v14_0_3.py => smu_v14_0_2.py} | 0 tinygrad/runtime/support/amd.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename tinygrad/runtime/autogen/am/{smu_v14_0_3.py => smu_v14_0_2.py} (100%) diff --git a/autogen_stubs.sh b/autogen_stubs.sh index f06e7ee1b9..5c4e684e3d 100755 --- a/autogen_stubs.sh +++ b/autogen_stubs.sh @@ -390,8 +390,8 @@ generate_am() { $AMKERN_AMD/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h \ extra/amdpci/headers/amdgpu_smu.h \ --clang-args="-include stdint.h" \ - -o $BASE/am/smu_v14_0_3.py - fixup $BASE/am/smu_v14_0_3.py + -o $BASE/am/smu_v14_0_2.py + fixup $BASE/am/smu_v14_0_2.py } generate_sqtt() { diff --git a/tinygrad/runtime/autogen/am/smu_v14_0_3.py b/tinygrad/runtime/autogen/am/smu_v14_0_2.py similarity index 100% rename from tinygrad/runtime/autogen/am/smu_v14_0_3.py rename to tinygrad/runtime/autogen/am/smu_v14_0_2.py diff --git a/tinygrad/runtime/support/amd.py b/tinygrad/runtime/support/amd.py index 8177418ed6..b29e618b12 100644 --- a/tinygrad/runtime/support/amd.py +++ b/tinygrad/runtime/support/amd.py @@ -40,7 +40,7 @@ def fixup_ip_version(ip:str, version:tuple[int, ...]) -> list[tuple[int, ...]]: return version if ip in ['nbio', 'nbif']: version = _apply_ovrd({(3,3): (2,3,0)}) - elif ip == 'mp': version = _apply_ovrd({(14,0,3): (14,0,2)}) + elif ip in ['mp', 'smu']: version = _apply_ovrd({(14,0,3): (14,0,2)}) return [version, version[:2], version[:2]+(0,), version[:1]+(0, 0)]