Hi, Maruthi,
I could run your example on my machine. BTW, I added these at the end
of main() to free petsc objects.
VecDestroy(&vout);
VecDestroy(&x);
VecDestroy(&b);
VecDestroy(&u);
MatDestroy(&A);
VecScatterDestroy(&ctx);
KSPDestroy(&ksp);
If you use cuda-12.2, maybe the problem is already f
Hi Barry Smith,
Thanks for the quick response.
Here is the code I used to test PETSc on GPU.
This is the command I used to run
mpiexec.hydra -n 1 ./heat_diff_cu -Nx 1000 -ksp_type gmres -mat_type
aijcusparse -vec_type cuda -use_gpu_aware_mpi 0 -pc_type gamg
-ksp_converged_reason
Regards,
Mar