Re: [petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-11 Thread Junchao Zhang
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

Re: [petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-11 Thread Maruthi NH
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