Skip to content

Commit bcf279c

Browse files
committed
Introduce hermetic rocm dependency
1 parent e554cb0 commit bcf279c

22 files changed

+1683
-514
lines changed

third_party/gpus/crosstool/BUILD.rocm.tpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ filegroup(
110110
)
111111

112112
filegroup(
113-
name = "crosstool_wrapper_driver_is_not_gcc",
114-
srcs = ["clang/bin/crosstool_wrapper_driver_is_not_gcc"],
113+
name = "crosstool_wrapper_driver_is_not_gcc",
114+
srcs = [":clang/bin/crosstool_wrapper_driver_is_not_gcc"],
115+
data = ["@local_config_rocm//rocm:all_files"],
115116
)
116-

third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_rocm.tpl

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def InvokeHipcc(argv, log=False):
191191
hipccopts += defines
192192
hipccopts += std_options
193193
hipccopts += m_options
194+
hipccopts += ' --rocm-path="%{rocm_path}" '
194195

195196
if depfiles:
196197
# Generate the dependency file

0 commit comments

Comments
 (0)