message: fixed omp fbcsr kernels for accessor rearrangement
diff: @@ -47,7 +47,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  #include <ginkgo/core/matrix/csr.hpp>
  +#include "accessor/block_col_major.hpp"
  #include "core/base/iterator_factory.hpp"
  +#include "core/base/utils.hpp"
  #include "omp/components/format_conversion.hpp"
  @@ -113,10 +115,10 @@ void convert_fbcsr_to_fbcsc(const IndexType num_blk_rows, const int blksz,
  IndexType* const col_ptrs,
  ValueType* const csc_vals, UnaryOperator op)
  {
  - const range<accessor::block_col_major<const ValueType, 3>> rvalues(
  - fbcsr_vals, dim<3>(row_ptrs[num_blk_rows], blksz, blksz));
  - range<accessor::block_col_major<ValueType, 3>> cvalues(
  - csc_vals, dim<3>(row_ptrs[num_blk_rows], blksz, blksz));
  + auto sizes = gko::to_array<size_type>(row_ptrs[num_blk_rows], blksz, blksz);
  + const acc::range<acc::block_col_major<const ValueType, 3>> rvalues(
  + sizes, fbcsr_vals);
  + acc::range<acc::block_col_major<ValueType, 3>> cvalues(sizes, csc_vals);
  for (IndexType brow = 0; brow < num_blk_rows; ++brow) {
  for (auto i = row_ptrs[brow]; i < row_ptrs[brow + 1]; ++i) {
  const auto dest_idx = col_ptrs[col_idxs[i]];
  @@ -332,8 +334,8 @@ void extract_diagonal(std::shared_ptr<const OmpExecutor> exec,
  assert(diag->get_size()[0] == nbdim_min * bs);
  - const range<accessor::block_col_major<const ValueType, 3>> vblocks(
  - values, dim<3>(row_ptrs[nbrows], bs, bs));
  + const acc::range<acc::block_col_major<const ValueType, 3>> vblocks(
  + gko::to_array<size_type>(row_ptrs[nbrows], bs, bs), values);
  #pragma omp parallel for
  for (IndexType ibrow = 0; ibrow < nbdim_min; ++ibrow) {
  