From e1a92f747ea4ce502764e938be9ca6456dd91269 Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Tue, 17 Dec 2024 14:43:18 +0200 Subject: [PATCH] Avoid no_discard warning --- src/tests/linalg/test_linalg_sparse_matrix_gpu.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/linalg/test_linalg_sparse_matrix_gpu.cc b/src/tests/linalg/test_linalg_sparse_matrix_gpu.cc index 70017245d..1997bf9fd 100644 --- a/src/tests/linalg/test_linalg_sparse_matrix_gpu.cc +++ b/src/tests/linalg/test_linalg_sparse_matrix_gpu.cc @@ -181,9 +181,9 @@ void check_matrix(const SparseMatrixStorage& m) { std::vector host_inner(host_matrix_view.inner_size()); std::vector 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);