Skip to content

Commit

Permalink
Fix HIP and CUDA ELL SpMV Debug error
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Grützmacher committed Mar 17, 2021
1 parent b3ea4bb commit 281447e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cuda/matrix/ell_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ void abstract_spmv(syn::value_list<int, info>, int num_worker_per_row,
std::array<size_type, 1>{{num_stored_elements_per_row * stride}},
a->get_const_values());
const auto b_vals = gko::acc::range<b_accessor>(
std::array<size_type, 2>{{nrows, b->get_stride()}},
b->get_const_values());
std::array<size_type, 2>{{b->get_size()[0], b->get_size()[1]}},
b->get_const_values(), std::array<size_type, 1>{{b->get_stride()}});

if (alpha == nullptr && beta == nullptr) {
kernel::spmv<num_thread_per_worker, atomic>
Expand Down
4 changes: 2 additions & 2 deletions hip/matrix/ell_kernels.hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ void abstract_spmv(syn::value_list<int, info>, int num_worker_per_row,
std::array<size_type, 1>{{num_stored_elements_per_row * stride}},
a->get_const_values());
const auto b_vals = gko::acc::range<b_accessor>(
std::array<size_type, 2>{{nrows, b->get_stride()}},
b->get_const_values());
std::array<size_type, 2>{{b->get_size()[0], b->get_size()[1]}},
b->get_const_values(), std::array<size_type, 1>{{b->get_stride()}});

if (alpha == nullptr && beta == nullptr) {
hipLaunchKernelGGL(
Expand Down

0 comments on commit 281447e

Please sign in to comment.