Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion viennacl/linalg/host_based/sparse_matrix_operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ void prod_impl(const viennacl::sliced_ell_matrix<NumericT, IndexT> & mat,
IndexT const * column_indices = detail::extract_raw_pointer<IndexT>(mat.handle2());
IndexT const * block_start = detail::extract_raw_pointer<IndexT>(mat.handle3());

vcl_size_t num_blocks = mat.size1() / mat.rows_per_block() + 1;
vcl_size_t num_blocks = (mat.size1() - 1) / mat.rows_per_block() + 1;

#ifdef VIENNACL_WITH_OPENMP
#pragma omp parallel for
Expand Down