Skip to content

Commit

Permalink
src->source, dst->destination
Browse files Browse the repository at this point in the history
and reformat a bit
  • Loading branch information
brian-kelley committed Dec 18, 2023
1 parent 72bc7ed commit 154a57d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions core/src/Kokkos_CopyViews.hpp
Expand Up @@ -614,15 +614,15 @@ void view_copy(const DstType& dst, const SrcType& src) {

if (!DstExecCanAccessSrc && !SrcExecCanAccessDst) {
std::ostringstream ss;
ss << "Error: Kokkos::deep_copy with no available copy mechanism: ";
ss << "from src (\"" << src.label() << "\") to dst (\"" << dst.label()
<< "\").\n";
ss << "There is no common execution space that can access both src's "
"space\n";
ss << "(" << src_memory_space().name() << ") and dst's space ("
<< dst_memory_space().name() << "), ";
ss << "so src and dst\n";
ss << "must be contiguous and have the same layout.\n";
ss << "Error: Kokkos::deep_copy with no available copy mechanism: "
<< "from source view (\"" << src.label() << "\") to destination view (\""
<< dst.label() << "\").\n"
<< "There is no common execution space that can access both source's "
"space\n"
<< "(" << src_memory_space().name() << ") and destination's space ("
<< dst_memory_space().name() << "), "
<< "so source and destination\n"
<< "must be contiguous and have the same layout.\n";
Kokkos::Impl::throw_runtime_exception(ss.str());
}

Expand Down

0 comments on commit 154a57d

Please sign in to comment.