Skip to content

Commit

Permalink
Fix example static_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Rbiessy committed Jun 7, 2024
1 parent c4da9d7 commit 1a1885e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<intType>(sizevec), x);
oneapi::mkl::sparse::init_dense_vector(main_queue, &y_handle, static_cast<intType>(sizevec), y);
oneapi::mkl::sparse::init_dense_vector(main_queue, &x_handle, static_cast<std::int64_t>(sizevec), x);
oneapi::mkl::sparse::init_dense_vector(main_queue, &y_handle, static_cast<std::int64_t>(sizevec), y);

// Create operation descriptor
oneapi::mkl::sparse::spmv_descr_t descr = nullptr;
Expand Down

0 comments on commit 1a1885e

Please sign in to comment.