Skip to content

Commit

Permalink
Avoid no_discard warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Dec 17, 2024
1 parent 7c6feb8 commit e1a92f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/linalg/test_linalg_sparse_matrix_gpu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ void check_matrix(const SparseMatrixStorage& m) {
std::vector<Index> host_inner(host_matrix_view.inner_size());
std::vector<Value> host_value(host_matrix_view.value_size());

hicMemcpy(host_outer.data(), device_matrix_view.outer(), device_matrix_view.outer_size() * sizeof(Index), hicMemcpyDeviceToHost);
hicMemcpy(host_inner.data(), device_matrix_view.inner(), device_matrix_view.inner_size() * sizeof(Index), hicMemcpyDeviceToHost);
hicMemcpy(host_value.data(), device_matrix_view.value(), device_matrix_view.value_size() * sizeof(Value), hicMemcpyDeviceToHost);
HIC_CALL(hicMemcpy(host_outer.data(), device_matrix_view.outer(), device_matrix_view.outer_size() * sizeof(Index), hicMemcpyDeviceToHost));
HIC_CALL(hicMemcpy(host_inner.data(), device_matrix_view.inner(), device_matrix_view.inner_size() * sizeof(Index), hicMemcpyDeviceToHost));
HIC_CALL(hicMemcpy(host_value.data(), device_matrix_view.value(), device_matrix_view.value_size() * sizeof(Value), hicMemcpyDeviceToHost));

EXPECT(host_outer == expected_outer);
EXPECT(host_inner == expected_inner);
Expand Down

0 comments on commit e1a92f7

Please sign in to comment.