Hello,

I am working on a reservoir simulation code and we use PETSc to solve the 
linear system inside every non-linear Newton loop. The size of problem I am 
currently working on is from 1 to 7 million DoF matrix size. We have block 
matrices that come from compositional reservoir simulation, 1 pressure plus 6 
composition unknowns per block.

We have implemented MPI and used PETSc succesfully as well us using PETSc 
solver in a single GPU. Our machine specificaitions are:
CPU: Intel Core Ultra 9 285K — 24 cores / 24 threads, up to 6.5 GHz
RAM: 125 GB
GPU: 1x NVIDIA GeForce RTX 5090, 32 GB VRAM, driver 580.159.03

We have seen with BCGS + bjacobi/ILU a speed up around 10x from serial to GPU 
and it was beating the time we were having with the same solver for MPI that 
was saturating around 5.

The best solver configuration for the problem so far is -pc_fieldsplit_type 
multiplicative -fieldsplit_pressure_ksp_type preonly 
-fieldsplit_pressure_pc_type hypre -fieldsplit_pressure_pc_hypre_type boomeramg 
-fieldsplit_other_ksp_type preonly -fieldsplit_other_pc_type bjacobi 
-fieldsplit_other_sub_pc_type ilu 
-fieldsplit_other_sub_pc_factor_reuse_ordering true 
-fieldsplit_other_sub_pc_factor_reuse_fill true -ksp_type bcgs -ksp_rtol 1e-4 
-log_view, which is using a CPR like approach to solve Pressure blocks with 
BOOMERAMG.

The CPR solver is giving excellent times in parallel with MPI but is not having 
a good acceleration when using the GPU. I have tried changing from BOOMERAMG to 
GAMG to check if it was possibly something related to the HYPRE interface and 
the GAMG seemed to give a greater speedup than BOOMERAMG in GPU comparative to 
serial, despite being slower overall. However, I still did not found a solver 
option that is faster in GPU than in MPI (with 8 cores).

My request is to know if you have a solver option to suggest that might take 
advantage of the GPU capacities of accelerating the solution for this type of 
problem.

Thanks in advance.

Danielle Cotia.

Reply via email to