Skip to content

Commit

Permalink
fi: an error message based on a review
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Sep 24, 2024
1 parent f6f2247 commit d7d8ca6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions common/src/KokkosFFT_transpose.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ void prep_transpose_view(InViewType& in, OutViewType& out,
}

if constexpr (std::is_const_v<OutViewType>) {
KOKKOSFFT_THROW_IF(!is_out_view_ready,
"prep_transpose_view: OutViewType is const, but do not "
"have the required extents");
KOKKOSFFT_THROW_IF(
!is_out_view_ready,
"prep_transpose_view: OutViewType is const, but does not "
"have the required extents");
} else {
if (!is_out_view_ready) {
if constexpr (!OutViewType::memory_traits::is_unmanaged) {
Expand Down

0 comments on commit d7d8ca6

Please sign in to comment.