1 #ifndef _COMPADRE_FUNCTORS_HPP_
2 #define _COMPADRE_FUNCTORS_HPP_
23 KOKKOS_INLINE_FUNCTION
26 const int local_index = teamMember.league_rank();
38 Kokkos::parallel_for(Kokkos::TeamThreadRange(teamMember,
_rows), [=] (
const int i) {
39 for (
int j=0; j<
_cols; j++) {
41 local_mat_view(i, j) = permanent_mat_view(i, j);
44 teamMember.team_barrier();
47 Kokkos::parallel_for(Kokkos::TeamThreadRange(teamMember,
_rows*
_cols), [=] (
const int i) {
48 permanent_mat_view_flat(i) = local_mat_view_flat(i);
50 teamMember.team_barrier();
63 KOKKOS_INLINE_FUNCTION
66 const int local_index = teamMember.league_rank();
78 Kokkos::parallel_for(Kokkos::TeamThreadRange(teamMember,
_rows), [=] (
const int i) {
79 for (
int j=0; j<
_cols; j++) {
81 local_mat_view(i, j) = permanent_mat_view(i, j);
84 teamMember.team_barrier();
87 Kokkos::parallel_for(Kokkos::TeamThreadRange(teamMember,
_rows*
_cols), [=] (
const int i) {
88 permanent_mat_view_flat(i) = local_mat_view_flat(i);
90 teamMember.team_barrier();
KOKKOS_INLINE_FUNCTION int getTeamScratchLevel(const int level) const
team_policy::member_type member_type
KOKKOS_INLINE_FUNCTION void operator()(const member_type &teamMember) const
#define TO_GLOBAL(variable)
KOKKOS_INLINE_FUNCTION void operator()(const member_type &teamMember) const
Kokkos::View< double **, layout_right, Kokkos::MemoryTraits< Kokkos::Unmanaged > > scratch_matrix_right_type
Kokkos::View< double *, Kokkos::MemoryTraits< Kokkos::Unmanaged > > scratch_vector_type
Kokkos::View< double **, layout_left, Kokkos::MemoryTraits< Kokkos::Unmanaged > > scratch_matrix_left_type
ConvertLayoutLeftToRight(const ParallelManager &pm, int rows, int cols, double *mat_ptr)
ConvertLayoutRightToLeft(const ParallelManager &pm, int rows, int cols, double *mat_ptr)
double * _permanent_mat_ptr
double * _permanent_mat_ptr