Skip to content

Commit

Permalink
Suppress unused variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cartoonist committed Oct 16, 2020
1 parent c4c6372 commit 5a60813
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions include/pairg/spgemm_utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ namespace pairg
//Assume rows are not sorted
kh.create_spadd_handle(false);

const lno_t num_rows_A = A.numRows();
const lno_t num_cols_A = A.numCols();
const lno_t num_rows_B = B.numRows();
const lno_t num_cols_B = B.numCols();
[[maybe_unused]] const lno_t num_rows_A = A.numRows();
[[maybe_unused]] const lno_t num_cols_A = A.numCols();
[[maybe_unused]] const lno_t num_rows_B = B.numRows();
[[maybe_unused]] const lno_t num_cols_B = B.numCols();

assert(num_rows_A == num_rows_B);
assert(num_cols_A == num_cols_B);
Expand Down Expand Up @@ -132,10 +132,10 @@ namespace pairg
KokkosSparse::SPGEMMAlgorithm spgemm_algorithm = KokkosSparse::SPGEMM_KK_MEMORY;
kh.create_spgemm_handle(spgemm_algorithm);

const lno_t num_rows_A = A.numRows();
const lno_t num_cols_A = A.numCols();
const lno_t num_rows_B = B.numRows();
const lno_t num_cols_B = B.numCols();
[[maybe_unused]] const lno_t num_rows_A = A.numRows();
[[maybe_unused]] const lno_t num_cols_A = A.numCols();
[[maybe_unused]] const lno_t num_rows_B = B.numRows();
[[maybe_unused]] const lno_t num_cols_B = B.numCols();

assert(num_cols_A == num_rows_B);

Expand Down Expand Up @@ -195,8 +195,8 @@ namespace pairg
*/
static crsMat_t power(const crsMat_t &A, int n)
{
const lno_t num_rows_A = A.numRows();
const lno_t num_cols_A = A.numCols();
[[maybe_unused]] const lno_t num_rows_A = A.numRows();
[[maybe_unused]] const lno_t num_cols_A = A.numCols();

assert(num_rows_A == num_cols_A);

Expand Down Expand Up @@ -246,7 +246,7 @@ namespace pairg
static void indexForQuery(crsMat_t &A)
{
lno_t num_rows = A.numRows();
size_type nnz = A.graph.entries.extent(0);
[[maybe_unused]] size_type nnz = A.graph.entries.extent(0);

//Functor to sort entries within each row
auto sortEntries = [&](const lno_t i)
Expand Down

0 comments on commit 5a60813

Please sign in to comment.