Skip to content

Commit

Permalink
Fix buffer
Browse files Browse the repository at this point in the history
Signed-off-by: Jiang, Zhiwei <zhiwei.jiang@intel.com>
  • Loading branch information
zhiweij1 committed Feb 17, 2025
1 parent 6054d12 commit 31ca3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/runtime/dpct-rt/include/dpct/sparse_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ void csrgemm2_nnz(descriptor_ptr desc, int m, int n, int k,
#ifdef DPCT_USM_LEVEL_NONE
sycl::buffer<std::int64_t, 1> nnz_buf_c1(1);
__MATMAT(oneapi::mkl::sparse::matmat_request::get_nnz, &nnz_buf_c1);
nnz_c1_int = nnz_buf_c.get_host_access(sycl::read_only)[0];
nnz_c1_int = nnz_buf_c1.get_host_access(sycl::read_only)[0];
#else
std::int64_t *nnz_c1 = sycl::malloc_host<std::int64_t>(1, queue);
__MATMAT(oneapi::mkl::sparse::matmat_request::get_nnz, nnz_c1);
Expand Down

0 comments on commit 31ca3f8

Please sign in to comment.