From 1a1885e95f27daad297e98513e79762f4f6dc6cd Mon Sep 17 00:00:00 2001 From: "romain.biessy" Date: Fri, 7 Jun 2024 08:25:22 +0100 Subject: [PATCH] Fix example static_cast --- .../sparse_blas/run_time_dispatching/sparse_blas_spmv_usm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sparse_blas/run_time_dispatching/sparse_blas_spmv_usm.cpp b/examples/sparse_blas/run_time_dispatching/sparse_blas_spmv_usm.cpp index 6b14881fe..4a8a4280b 100644 --- a/examples/sparse_blas/run_time_dispatching/sparse_blas_spmv_usm.cpp +++ b/examples/sparse_blas/run_time_dispatching/sparse_blas_spmv_usm.cpp @@ -148,8 +148,8 @@ int run_sparse_matrix_vector_multiply_example(const sycl::device &dev) { // Create and initialize dense vector handles oneapi::mkl::sparse::dense_vector_handle_t x_handle = nullptr; oneapi::mkl::sparse::dense_vector_handle_t y_handle = nullptr; - oneapi::mkl::sparse::init_dense_vector(main_queue, &x_handle, static_cast(sizevec), x); - oneapi::mkl::sparse::init_dense_vector(main_queue, &y_handle, static_cast(sizevec), y); + oneapi::mkl::sparse::init_dense_vector(main_queue, &x_handle, static_cast(sizevec), x); + oneapi::mkl::sparse::init_dense_vector(main_queue, &y_handle, static_cast(sizevec), y); // Create operation descriptor oneapi::mkl::sparse::spmv_descr_t descr = nullptr;