Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
viclafargue committed Jan 27, 2025
1 parent dc72acc commit 8e58d29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpp/tests/linalg/eigen_solvers.cu
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ TEST(Raft, EigenSolvers)
index_type nnz = 0;
index_type nrows = 0;

sparse_matrix_t<index_type, value_type> sm1{h, ro, ci, vs, nrows, nnz};
sparse_matrix_t<index_type, value_type> sm1{h, ro, ci, vs, nrows, static_cast<uint64_t>(nnz)};
ASSERT_EQ(nullptr, sm1.row_offsets_);

index_type neigvs{10};
Expand Down
4 changes: 2 additions & 2 deletions cpp/tests/sparse/solver/lanczos.cu
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class rmat_lanczos_tests
raft::make_device_vector<IndexType, uint32_t, raft::row_major>(handle,
symmetric_coo.n_rows + 1);
raft::sparse::convert::sorted_coo_to_csr(symmetric_coo.rows(),
(IndexType)symmetric_coo.nnz,
static_cast<int>(symmetric_coo.nnz),
row_indices.data_handle(),
symmetric_coo.n_rows + 1,
stream);
Expand All @@ -198,7 +198,7 @@ class rmat_lanczos_tests
symmetric_coo.cols(),
symmetric_coo.vals(),
symmetric_coo.n_rows,
(IndexType)symmetric_coo.nnz};
symmetric_coo.nnz};
raft::sparse::solver::lanczos_solver_config<ValueType> config{
n_components, params.maxiter, params.restartiter, params.tol, rng.seed};

Expand Down
2 changes: 1 addition & 1 deletion cpp/tests/sparse/spectral_matrix.cu
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ TEST(Raft, SpectralMatrices)
value_type* vs{nullptr};
index_type nnz = 0;
index_type nrows = 0;
sparse_matrix_t<index_type, value_type> sm1{h, ro, ci, vs, nrows, nnz};
sparse_matrix_t<index_type, value_type> sm1{h, ro, ci, vs, nrows, static_cast<uint64_t>(nnz)};
sparse_matrix_t<index_type, value_type> sm2{h, csr_v};
ASSERT_EQ(nullptr, sm1.row_offsets_);
ASSERT_EQ(nullptr, sm2.row_offsets_);
Expand Down

0 comments on commit 8e58d29

Please sign in to comment.