Skip to content

Commit

Permalink
Remove extra double quote in CUDA and HIP allocation error messages (…
Browse files Browse the repository at this point in the history
…#5926)

* Remove extra double quote in CUDA allocation error msg

* Remove extra double quote in HIP allocation error msg
  • Loading branch information
dalg24 committed Mar 1, 2023
1 parent 569a609 commit 310812b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/HIP/Kokkos_HIP_Error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class HIPRawMemoryAllocationFailure : public RawMemoryAllocationFailure {

void append_additional_error_information(std::ostream& o) const override {
if (m_error_code != hipSuccess) {
o << " The HIP allocation returned the error code \"\""
o << " The HIP allocation returned the error code \""
<< hipGetErrorName(m_error_code) << "\".";
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/impl/Kokkos_Error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace Experimental {
void CudaRawMemoryAllocationFailure::append_additional_error_information(
std::ostream &o) const {
if (m_error_code != cudaSuccess) {
o << " The Cuda allocation returned the error code \"\""
o << " The Cuda allocation returned the error code \""
<< cudaGetErrorName(m_error_code) << "\".";
}
}
Expand Down

0 comments on commit 310812b

Please sign in to comment.