Skip to content

Commit 2f99710

Browse files
committed
update onemkl sparse api
Signed-off-by: Fedorov, Andrey <[email protected]>
1 parent 3247df8 commit 2f99710

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Libraries/oneMKL/sparse_conjugate_gradient/sparse_cg.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void run_sparse_cg_example(const sycl::device &dev)
138138
try {
139139
mkl::sparse::init_matrix_handle(&handle);
140140

141-
mkl::sparse::set_csr_data(handle, nrows, nrows, mkl::index_base::zero,
141+
mkl::sparse::set_csr_data(main_queue, handle, nrows, nrows, mkl::index_base::zero,
142142
ia_buffer, ja_buffer, a_buffer);
143143

144144
mkl::sparse::set_matrix_property(handle, mkl::sparse::property::symmetric);
@@ -272,7 +272,8 @@ void run_sparse_cg_example(const sycl::device &dev)
272272
std::cout << "\t\tCaught exception:\n" << e.what() << std::endl;
273273
}
274274

275-
mkl::sparse::release_matrix_handle(&handle);
275+
mkl::sparse::release_matrix_handle(main_queue, &handle);
276+
main_queue.wait();
276277
}
277278

278279
//

0 commit comments

Comments
 (0)