Skip to content

Commit

Permalink
added explicit nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
pemeliya authored and hsharsha committed Jun 19, 2024
1 parent 616b18d commit 95465d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xla/stream_executor/rocm/rocm_blas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ absl::Status ROCMBlas::DoBlasInternalImpl(FuncT rocblas_func, Stream *stream,
}
}
#if TF_ROCM_VERSION >= 60000
if (auto *workspace = GetWorkspace();
workspace != nullptr && workspace->opaque() && workspace->size() > 0) {
(void)wrap::rocblas_set_workspace(blas_, workspace->opaque(),
if (auto *workspace = GetWorkspace(); workspace != nullptr &&
workspace->opaque() != nullptr && workspace->size() > 0) {
(void)wrap::rocblas_set_workspace(blas_, workspace->opaque(),
workspace->size());
}
#endif
Expand Down

0 comments on commit 95465d6

Please sign in to comment.