From 16acf0a31d645617aeb6e37b44d0ec7d21a35e2e Mon Sep 17 00:00:00 2001 From: William Moses Date: Fri, 17 Oct 2025 19:03:48 +0800 Subject: [PATCH 1/2] Fix sed command for amdgpu_backend in workspace.bzl --- workspace.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace.bzl b/workspace.bzl index 0cad2226f0..50e75c9d0d 100644 --- a/workspace.bzl +++ b/workspace.bzl @@ -19,7 +19,7 @@ XLA_PATCHES = [ sed -i.bak0 "/amdgpu_backend/d" xla/backends/gpu/codegen/triton/BUILD """, """ - sed -i.bak0 "s/\\\"\\/\\/xla\\/service\\/gpu\\/llvm_gpu_backend:nvptx_backend\\\"/\\0]) + if_rocm_is_configured([\\\"\\/\\/xla\\/service\\/gpu\\/llvm_gpu_backend:amdgpu_backend\\\"/g" xla/backends/gpu/codegen/triton/BUILD + sed -i.bak0 "s/\\\"\\/\\/xla\\/service\\/gpu\\/llvm_gpu_backend:nvptx_backend\\\"/\\0]) + if_rocm_is_configured([\\\"\\/\\/xla\\/service\\/gpu\\/llvm_gpu_backend:amdgpu_backend\\\"/g" xla/backends/gpu/codegen/triton/BUILD """, """ sed -i.bak0 "s/load(\\\"\\/\\/xla\\/tsl:tsl.bzl\\\", \\\"if_google\\\")/\\0\\nload(\\\"@local_config_rocm\\/\\/rocm:build_defs.bzl\\\", \\\"if_rocm_is_configured\\\")/g" xla/backends/gpu/codegen/triton/BUILD From 87832876e6e7cc0f2ba8589f7f1df5fe8e2c25e9 Mon Sep 17 00:00:00 2001 From: William Moses Date: Fri, 17 Oct 2025 19:30:21 +0800 Subject: [PATCH 2/2] Update workspace.bzl --- workspace.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/workspace.bzl b/workspace.bzl index 50e75c9d0d..8d92ae1340 100644 --- a/workspace.bzl +++ b/workspace.bzl @@ -14,6 +14,7 @@ OVERRIDE_ENZYME_PATH = "" HEDRON_COMPILE_COMMANDS_COMMIT = "4f28899228fb3ad0126897876f147ca15026151e" HEDRON_COMPILE_COMMANDS_SHA256 = "" + XLA_PATCHES = [ """ sed -i.bak0 "/amdgpu_backend/d" xla/backends/gpu/codegen/triton/BUILD