message: fixed pointer mode issue in cuda fbcsr advanced apply
diff: @@ -97,7 +97,6 @@ void spmv(std::shared_ptr<const CudaExecutor> exec,
  {
  if (cusparse::is_supported<ValueType, IndexType>::value) {
  auto handle = exec->get_cusparse_handle();
  - {
  cusparse::pointer_mode_guard pm_guard(handle);
  const auto alpha = one<ValueType>();
  const auto beta = zero<ValueType>();
  @@ -108,21 +107,18 @@ void spmv(std::shared_ptr<const CudaExecutor> exec,
  const int bs = a->get_block_size();
  const IndexType mb = a->get_num_block_rows();
  const IndexType nb = a->get_num_block_cols();
  - const auto nnzb =
  - static_cast<IndexType>(a->get_num_stored_blocks());
  + const auto nnzb = static_cast<IndexType>(a->get_num_stored_blocks());
  const auto nrhs = static_cast<IndexType>(b->get_size()[1]);
  assert(nrhs == c->get_size()[1]);
  if (nrhs == 1) {
  - cusparse::bsrmv(handle, CUSPARSE_OPERATION_NON_TRANSPOSE, mb,
  - nb, nnzb, &alpha, descr, values, row_ptrs,
  - col_idxs, bs, b->get_const_values(), &beta,
  - c->get_values());
  + cusparse::bsrmv(handle, CUSPARSE_OPERATION_NON_TRANSPOSE, mb, nb,
  + nnzb, &alpha, descr, values, row_ptrs, col_idxs, bs,
  + b->get_const_values(), &beta, c->get_values());
  } else {
  GKO_NOT_IMPLEMENTED;
  }
  cusparse::destroy(descr);
  - }
  } else
  GKO_NOT_IMPLEMENTED;
  }
  @@ -140,8 +136,6 @@ void advanced_spmv(std::shared_ptr<const CudaExecutor> exec,
  {
  if (cusparse::is_supported<ValueType, IndexType>::value) {
  auto handle = exec->get_cusparse_handle();
  - {
  - cusparse::pointer_mode_guard pm_guard(handle);
  const auto alphp = alpha->get_const_values();
  const auto betap = beta->get_const_values();
  auto descr = cusparse::create_mat_descr();
  @@ -151,21 +145,18 @@ void advanced_spmv(std::shared_ptr<const CudaExecutor> exec,
  const int bs = a->get_block_size();
  const IndexType mb = a->get_num_block_rows();
  const IndexType nb = a->get_num_block_cols();
  - const auto nnzb =
  - static_cast<IndexType>(a->get_num_stored_blocks());
  + const auto nnzb = static_cast<IndexType>(a->get_num_stored_blocks());
  const auto nrhs = static_cast<IndexType>(b->get_size()[1]);
  assert(nrhs == c->get_size()[1]);
  if (nrhs == 1) {
  - cusparse::bsrmv(handle, CUSPARSE_OPERATION_NON_TRANSPOSE, mb,
  - nb, nnzb, alphp, descr, values, row_ptrs,
  - col_idxs, bs, b->get_const_values(), betap,
  - c->get_values());
  + cusparse::bsrmv(handle, CUSPARSE_OPERATION_NON_TRANSPOSE, mb, nb,
  + nnzb, alphp, descr, values, row_ptrs, col_idxs, bs,
  + b->get_const_values(), betap, c->get_values());
  } else {
  GKO_NOT_IMPLEMENTED;
  }
  cusparse::destroy(descr);
  - }
  } else
  GKO_NOT_IMPLEMENTED;
  }
  