Skip to content

Commit 8e58d29

Browse files
committed
fix tests
1 parent dc72acc commit 8e58d29

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cpp/tests/linalg/eigen_solvers.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ TEST(Raft, EigenSolvers)
4646
index_type nnz = 0;
4747
index_type nrows = 0;
4848

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

5252
index_type neigvs{10};

cpp/tests/sparse/solver/lanczos.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class rmat_lanczos_tests
173173
raft::make_device_vector<IndexType, uint32_t, raft::row_major>(handle,
174174
symmetric_coo.n_rows + 1);
175175
raft::sparse::convert::sorted_coo_to_csr(symmetric_coo.rows(),
176-
(IndexType)symmetric_coo.nnz,
176+
static_cast<int>(symmetric_coo.nnz),
177177
row_indices.data_handle(),
178178
symmetric_coo.n_rows + 1,
179179
stream);
@@ -198,7 +198,7 @@ class rmat_lanczos_tests
198198
symmetric_coo.cols(),
199199
symmetric_coo.vals(),
200200
symmetric_coo.n_rows,
201-
(IndexType)symmetric_coo.nnz};
201+
symmetric_coo.nnz};
202202
raft::sparse::solver::lanczos_solver_config<ValueType> config{
203203
n_components, params.maxiter, params.restartiter, params.tol, rng.seed};
204204

cpp/tests/sparse/spectral_matrix.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ TEST(Raft, SpectralMatrices)
5555
value_type* vs{nullptr};
5656
index_type nnz = 0;
5757
index_type nrows = 0;
58-
sparse_matrix_t<index_type, value_type> sm1{h, ro, ci, vs, nrows, nnz};
58+
sparse_matrix_t<index_type, value_type> sm1{h, ro, ci, vs, nrows, static_cast<uint64_t>(nnz)};
5959
sparse_matrix_t<index_type, value_type> sm2{h, csr_v};
6060
ASSERT_EQ(nullptr, sm1.row_offsets_);
6161
ASSERT_EQ(nullptr, sm2.row_offsets_);

0 commit comments

Comments
 (0)