Skip to content

Commit

Permalink
[ROCm] Fixed linker issues with rocblas_get_version_string_size and r…
Browse files Browse the repository at this point in the history
…ocblas_get_version_string
  • Loading branch information
zoranjovanovic-ns committed Oct 14, 2024
1 parent cfc4c64 commit c320e9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion xla/stream_executor/rocm/rocblas_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ using stream_executor::internal::CachedDsoLoader::GetRocblasDsoHandle;
__macro(rocblas_destroy_handle) \
__macro(rocblas_get_stream) \
__macro(rocblas_set_stream) \
__macro(rocblas_set_atomics_mode)
__macro(rocblas_set_atomics_mode) \
__macro(rocblas_get_version_string_size) \
__macro(rocblas_get_version_string)

// clang-format on

Expand Down
4 changes: 0 additions & 4 deletions xla/stream_executor/rocm/rocm_blas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,6 @@ IMPL_DoBlasGemmBatched(float, wrap::rocblas_sgemm_strided_batched)
}

absl::Status ROCMBlas::GetVersion(std::string *version) {
#if TF_ROCM_VERSION >= 60200 // Not available in ROCM-6.1
absl::MutexLock lock{&mu_};
size_t len = 0;
if (auto res = wrap::rocblas_get_version_string_size(&len);
Expand All @@ -1250,9 +1249,6 @@ absl::Status ROCMBlas::GetVersion(std::string *version) {
}
*version = std::string(buf.begin(), buf.end());
return absl::OkStatus();
#else
return absl::UnimplementedError("");
#endif
}

} // namespace gpu
Expand Down

0 comments on commit c320e9c

Please sign in to comment.