Skip to content

Commit

Permalink
Merge pull request #1995 from ndellingwood/fix-cerr-spmv-mv
Browse files Browse the repository at this point in the history
Another upstream iostream removal fix
  • Loading branch information
lucbv authored Oct 11, 2023
2 parents c173644 + 7e6e8c6 commit 549f6e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sparse/tpls/KokkosSparse_spmv_mv_tpl_spec_decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef KOKKOSPARSE_SPMV_MV_TPL_SPEC_DECL_HPP_
#define KOKKOSPARSE_SPMV_MV_TPL_SPEC_DECL_HPP_

#include <sstream>

#include "KokkosKernels_Controls.hpp"

#ifdef KOKKOSKERNELS_ENABLE_TPL_CUSPARSE
Expand Down Expand Up @@ -119,8 +121,9 @@ void spmv_mv_cusparse(const Kokkos::Cuda &exec,
case 'T': opA = CUSPARSE_OPERATION_TRANSPOSE; break;
case 'H': opA = CUSPARSE_OPERATION_CONJUGATE_TRANSPOSE; break;
default: {
std::cerr << "Mode " << mode << " invalid for cuSPARSE SpMV MV.\n";
throw std::invalid_argument("Invalid mode");
std::ostringstream out;
out << "Mode " << mode << " invalid for cuSPARSE SpMV MV.\n";
throw std::invalid_argument(out.str());
}
}

Expand Down

0 comments on commit 549f6e1

Please sign in to comment.