summarylogtreecommitdiffstats
path: root/fix_hip_hcc_path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix_hip_hcc_path.patch')
-rw-r--r--fix_hip_hcc_path.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/fix_hip_hcc_path.patch b/fix_hip_hcc_path.patch
new file mode 100644
index 000000000000..8f1a3d80288d
--- /dev/null
+++ b/fix_hip_hcc_path.patch
@@ -0,0 +1,13 @@
+diff --git a/third_party/gpus/rocm_configure.bzl b/third_party/gpus/rocm_configure.bzl
+index 24829eb..4cfec24 100644
+--- a/third_party/gpus/rocm_configure.bzl
++++ b/third_party/gpus/rocm_configure.bzl
+@@ -440,7 +440,7 @@ def _find_libs(repository_ctx, rocm_config, bash_bin):
+ libs_paths = [
+ (name, _rocm_lib_paths(repository_ctx, name, path))
+ for name, path in [
+- ("hip_hcc", rocm_config.rocm_toolkit_path),
++ ("hip_hcc", rocm_config.rocm_toolkit_path + "/hip"),
+ ("rocblas", rocm_config.rocm_toolkit_path + "/rocblas"),
+ ("rocfft", rocm_config.rocm_toolkit_path + "/rocfft"),
+ ("hiprand", rocm_config.rocm_toolkit_path + "/hiprand"),