Skip to content

Commit

Permalink
No need to jump through so many hoops to print the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Jan 12, 2024
1 parent 868e42e commit e6ff1a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/Cuda/Kokkos_Cuda_Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,8 @@ void Cuda::impl_initialize(InitializationSettings const &settings) {
Impl::CudaInternal::m_cudaArch = Impl::cuda_kernel_arch(cuda_device_id);

if (Impl::CudaInternal::m_cudaArch == 0) {
std::stringstream ss;
ss << "Kokkos::Cuda::initialize ERROR: likely mismatch of architecture\n";
std::string msg = ss.str();
Kokkos::abort(msg.c_str());
Kokkos::abort(
"Kokkos::Cuda::initialize ERROR: likely mismatch of architecture\n");
}

int compiled_major = Impl::CudaInternal::m_cudaArch / 100;
Expand Down

0 comments on commit e6ff1a4

Please sign in to comment.