Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stokhos: Make sure deep_copy uses contiguous layouts where intended #10783

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,17 @@ void deep_copy( const ExecSpace &,
else {

typedef View< typename src_type::non_const_data_type ,
typename src_type::array_layout ,
std::conditional_t<std::is_same<typename src_type::array_layout,
Kokkos::LayoutStride>::value,
Kokkos::LayoutRight,
typename src_type::array_layout>,
typename src_type::execution_space > tmp_src_type;
typedef typename tmp_src_type::array_type tmp_src_array_type;
typedef View< typename dst_type::non_const_data_type ,
typename dst_type::array_layout ,
std::conditional_t<std::is_same<typename dst_type::array_layout,
Kokkos::LayoutStride>::value,
Kokkos::LayoutRight,
typename dst_type::array_layout>,
typename dst_type::execution_space > tmp_dst_type;
typedef typename tmp_dst_type::array_type tmp_dst_array_type;

Expand Down