Skip to content

Commit

Permalink
ShyLU - Basker : cleanups
Browse files Browse the repository at this point in the history
Signed-off-by: iyamazaki <[email protected]>
  • Loading branch information
iyamazaki committed Oct 26, 2024
1 parent da3a195 commit 218676e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/shylu/shylu_node/basker/src/shylubasker_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,6 @@ namespace BaskerNS
BASKER_INLINE
int Basker<Int,Entry,Exe_Space>::sfactor_copy()
{
printf( " .. sfactor_copy ..\n" ); fflush(stdout);
//Reorder A;
//Match order
if(match_flag == BASKER_TRUE)
Expand Down
4 changes: 0 additions & 4 deletions packages/shylu/shylu_node/basker/src/shylubasker_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ enum BASKER_INCOMPLETE_CODE
{ \
BASKER_ASSERT(s >= 0, "BASKER ASSERT MALLOC int_1d: size to alloc >= 0 fails"); \
if (s > 0) { \
/*a = INT_1DARRAY(BASKER_KOKKOS_NOINIT("int_1d"),s);*/ \
Kokkos::resize(a, s); \
if(a.data() == NULL) \
throw std::bad_alloc(); \
Expand All @@ -182,7 +181,6 @@ enum BASKER_INCOMPLETE_CODE
{ \
BASKER_ASSERT(s0>0, "BASKER ASSERT MALLOC int_rank2d: size to alloc > 0 fails"); \
BASKER_ASSERT(s1>0, "BASKER ASSERT MALLOC int_rank2d: size to alloc > 0 fails"); \
/*a = INT_RANK2DARRAY(BASKER_KOKKOS_NOINIT("int_rank2d"),s0,s1);*/ \
Kokkos::resize(a, s0,s1); \
if(a.data() == NULL) \
throw std::bad_alloc(); \
Expand Down Expand Up @@ -237,7 +235,6 @@ enum BASKER_INCOMPLETE_CODE
BASKER_ASSERT(s >= 0, "BASKER ASSERT MALLOC matrix_1d: size to alloc >= 0 fails"); \
if (s > 0) { \
a = MATRIX_1DARRAY(Kokkos::view_alloc("matrix_1d", Kokkos::SequentialHostInit),s); \
Kokkos::resize(a,s); \
if(a.data() == NULL) \
throw std::bad_alloc(); \
} \
Expand All @@ -247,7 +244,6 @@ enum BASKER_INCOMPLETE_CODE
BASKER_ASSERT(s >= 0, "BASKER ASSERT MALLOC matrix_2d: size to alloc >= 0 fails"); \
if (s > 0) { \
a = MATRIX_2DARRAY(Kokkos::view_alloc("matrix_2d", Kokkos::SequentialHostInit),s); \
Kokkos::resize(a,s); \
if(a.data() == NULL) \
throw std::bad_alloc(); \
} \
Expand Down

0 comments on commit 218676e

Please sign in to comment.