Skip to content

Commit 25a5adf

Browse files
Merge pull request #2920 from ROCm/r2.18-rocm-enhanced-offload-bundler
[SWDEV-525124] Fix clang-offload-bundler invocation
2 parents 674767d + 51bf463 commit 25a5adf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/xla/xla/stream_executor/gpu/asm_compiler.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ absl::StatusOr<std::vector<uint8_t>> BundleGpuAsm(
6262
std::ostringstream targets_list;
6363

6464
inputs_list << "/dev/null";
65-
targets_list << "host-x86_64-unknown-linux";
65+
targets_list << "host-x86_64-unknown-linux-";
6666

6767
// Write images to temporary files.
6868
std::vector<std::string> image_paths;
@@ -77,7 +77,7 @@ absl::StatusOr<std::vector<uint8_t>> BundleGpuAsm(
7777
env, img_path, std::string(img.bytes.begin(), img.bytes.end())));
7878
VLOG(2) << "image written to " << img_path;
7979
inputs_list << "," << img_path;
80-
targets_list << ",hip-amdgcn-amd-amdhsa-" << img.gfx_arch;
80+
targets_list << ",hip-amdgcn-amd-amdhsa--" << img.gfx_arch;
8181
image_paths.push_back(std::move(img_path));
8282
}
8383
absl::Cleanup image_files_cleaner = [&image_paths] {

0 commit comments

Comments
 (0)