From 1725be727cece80189c808e6353f1317625e40ec Mon Sep 17 00:00:00 2001 From: Dragan Mladjenovic Date: Thu, 17 Apr 2025 15:26:52 -0500 Subject: [PATCH] Fix build with ROCM_PATH=/opt/rocm --- third_party/gpus/rocm_configure.bzl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/third_party/gpus/rocm_configure.bzl b/third_party/gpus/rocm_configure.bzl index 7ed94343154fae..f01a8c5211555b 100644 --- a/third_party/gpus/rocm_configure.bzl +++ b/third_party/gpus/rocm_configure.bzl @@ -140,11 +140,7 @@ def _rocm_include_path(repository_ctx, rocm_config, bash_bin): if resource_dir_result.return_code: auto_configure_fail("Failed to run hipcc -print-resource-dir: %s" % err_out(resource_dir_result)) - resource_dir_abs = resource_dir_result.stdout.strip() - - resource_dir_rel = relative_to(repository_ctx, str(rocm_path.realpath), resource_dir_abs, bash_bin) - - resource_dir = str(rocm_path.get_child(resource_dir_rel)) + resource_dir = resource_dir_result.stdout.strip() inc_dirs.append(resource_dir + "/include") inc_dirs.append(resource_dir + "/share")