Skip to content

Commit 8222270

Browse files
committed
Add W7900 GPU support to build system
Add AMD Radeon PRO W7900 (gfx1100) GPU support to the Bazel build system by adding amdgpu:gfx1100 to the supported_gpus dictionary. Update bazel/common.MODULE.bazel to include "W7900": "amdgpu:gfx1100" in the supported_gpus dictionary and add GPU detection mappings for both "AMD Radeon PRO W7900" and "AMD Radeon Pro W7900" (case variants). Make generic Navi GPU mappings more specific to avoid conflicts. The gfx1100 architecture itself was already supported in the Mojo codebase via sys.info._is_amd_rdna3() which includes gfx1100, but the W7900 GPU name was missing from the build system's supported GPU list.
1 parent 055cd74 commit 8222270

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bazel/common.MODULE.bazel

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,11 @@ mojo.gpu_toolchains(
301301
"MI300X": "mi300x",
302302
"MI325": "mi325",
303303
"MI355": "mi355",
304-
"Navi": "radeon",
305-
"AMD Radeon Graphics": "radeon",
304+
"Navi 31": "W7900",
305+
"Navi 31 [Radeon Pro W7900]": "W7900",
306306
"AMD Radeon RX 6900 XT": "rx6900xt",
307+
"AMD Radeon PRO W7900": "W7900",
308+
"AMD Radeon Pro W7900": "W7900",
307309
"Metal 1": "", # Unsupported, macOS updates on any hardware get you to Metal 3+
308310
"Metal 2": "", # Unsupported, macOS updates on any hardware get you to Metal 3+
309311
"Metal 3": "metal3", # macOS 15
@@ -312,6 +314,7 @@ mojo.gpu_toolchains(
312314
# GPU name -> target accelerator
313315
supported_gpus = {
314316
"780M": "amdgpu:gfx1103",
317+
"W7900": "amdgpu:gfx1100",
315318
"a10": "nvidia:86",
316319
"a100": "nvidia:80",
317320
"a3000": "nvidia:86",

0 commit comments

Comments
 (0)