Skip to content

Commit

Permalink
Some compilers throw shadow warnings in static functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Aug 6, 2024
1 parent 177d454 commit 86c286b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sparse/impl/KokkosSparse_sptrsv_solve_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ struct SptrsvWrap {
KOKKOS_INLINE_FUNCTION
static void divide(const member_type &team, const Vector &b, const CBlock &A) {
// Team-shared buffer. Use for team work.
const auto block_size = b.size();
SBlock shared_buff(team.team_shmem(), block_size, block_size);
const auto block_size_ = b.size();
SBlock shared_buff(team.team_shmem(), block_size_, block_size_);

// Need a temp block to do LU of A
Block LU(shared_buff.data(), block_size, block_size);
Block LU(shared_buff.data(), block_size_, block_size_);
assign(team, LU, A);
team.team_barrier();
KokkosBatched::TeamLU<member_type, KokkosBatched::Algo::LU::Blocked>::invoke(team, LU);
Expand All @@ -277,11 +277,11 @@ struct SptrsvWrap {
scalar_t buff[BUFF_SIZE];

// Need a temp block to do LU of A
const auto block_size = b.size();
KK_KERNEL_REQUIRE_MSG(block_size <= MAX_VEC_SIZE,
const auto block_size_ = b.size();
KK_KERNEL_REQUIRE_MSG(block_size_ <= MAX_VEC_SIZE,
"Max supported block size for range-policy is 16. Use team-policy alg if you need more.");

Block LU(&buff[0], block_size, block_size);
Block LU(&buff[0], block_size_, block_size_);
assign(LU, A);
KokkosBatched::SerialLU<KokkosBatched::Algo::LU::Blocked>::invoke(LU);

Expand Down

0 comments on commit 86c286b

Please sign in to comment.