diff --git a/third_party/gpus/rocm_configure.bzl b/third_party/gpus/rocm_configure.bzl index 71cbfd08b83816..51e2292c650b20 100644 --- a/third_party/gpus/rocm_configure.bzl +++ b/third_party/gpus/rocm_configure.bzl @@ -616,7 +616,7 @@ def _setup_rocm_distro_dir(repository_ctx): rocm_path = repository_ctx.os.environ.get(_ROCM_TOOLKIT_PATH, _DEFAULT_ROCM_TOOLKIT_PATH) repository_ctx.report_progress("Using local rocm installation {}".format(rocm_path)) # buildifier: disable=print repository_ctx.symlink(rocm_path, _DISTRIBUTION_PATH) - return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DISTRIBUTION_PATH) + return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DEFAULT_ROCM_TOOLKIT_PATH) def _create_local_rocm_repository(repository_ctx): """Creates the repository containing files set up to build with ROCm.""" diff --git a/third_party/xla/third_party/tsl/third_party/gpus/rocm_configure.bzl b/third_party/xla/third_party/tsl/third_party/gpus/rocm_configure.bzl index 71cbfd08b83816..51e2292c650b20 100644 --- a/third_party/xla/third_party/tsl/third_party/gpus/rocm_configure.bzl +++ b/third_party/xla/third_party/tsl/third_party/gpus/rocm_configure.bzl @@ -616,7 +616,7 @@ def _setup_rocm_distro_dir(repository_ctx): rocm_path = repository_ctx.os.environ.get(_ROCM_TOOLKIT_PATH, _DEFAULT_ROCM_TOOLKIT_PATH) repository_ctx.report_progress("Using local rocm installation {}".format(rocm_path)) # buildifier: disable=print repository_ctx.symlink(rocm_path, _DISTRIBUTION_PATH) - return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DISTRIBUTION_PATH) + return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DEFAULT_ROCM_TOOLKIT_PATH) def _create_local_rocm_repository(repository_ctx): """Creates the repository containing files set up to build with ROCm."""