message: resolve vector generation on GPU
diff: @@ -72,14 +72,17 @@ int main(int argc, char *argv[])
  // Read data
  auto A = share(gko::read<mtx>(std::ifstream("data/A.mtx"), exec));
  -
  + // Create RHS and initial guess as 1
  gko::size_type size = A->get_size()[0];
  - auto x = gko::matrix::Dense<ValueType>::create(exec, gko::dim<2>(size, 1));
  - auto b = gko::matrix::Dense<ValueType>::create(exec, gko::dim<2>(size, 1));
  + auto host_x = gko::matrix::Dense<ValueType>::create(exec->get_master(),
  + gko::dim<2>(size, 1));
  for (auto i = 0; i < size; i++) {
  - x->at(i, 0) = 1.;
  - b->at(i, 0) = 1.;
  + host_x->at(i, 0) = 1.;
  }
  + auto x = gko::matrix::Dense<>::create(exec);
  + auto b = gko::matrix::Dense<>::create(exec);
  + x->copy_from(host_x.get());
  + b->copy_from(host_x.get());
  // Calculate initial residual
  auto one = gko::initialize<vec>({1.0}, exec);
  