[petsc-users] hypre / hip usage

Mark Adams mfadams at lbl.gov
Fri Jan 21 09:27:54 CST 2022


>
>
>
> > Is there a way to tell from log_view data that hypre is running on the
> GPU?
>
> Is it clear from data transfer within PCApply?
>
>
Well, this does not look right. '-mat_type hypre' fails. I guess we have to
get that working or could/should it work with -mat_type aijkokkos ?

--- Event Stage 2: KSP Solve only

MatMult              230 1.0 1.0922e-01 2.0 1.50e+07 2.1 2.3e+06 2.7e+02
0.0e+00  1 58 81 64  0   3 91100100  0 62942       0      0 0.00e+00  920
4.26e+00  0
KSPSolve              10 1.0 3.0406e+00 1.0 1.64e+07 2.0 2.3e+06 2.7e+02
7.0e+02 51 64 81 64 74 100100100100100  2488    4253    230 8.99e-01 1620
4.27e+00  9
SFPack               230 1.0 3.6798e-03 2.9 0.00e+00 0.0 0.0e+00 0.0e+00
0.0e+00  0  0  0  0  0   0  0  0  0  0     0       0      0 0.00e+00    0
0.00e+00  0
SFUnpack             230 1.0 1.5381e-04 4.1 0.00e+00 0.0 0.0e+00 0.0e+00
0.0e+00  0  0  0  0  0   0  0  0  0  0     0       0      0 0.00e+00    0
0.00e+00  0
VecTDot              460 1.0 3.9809e-01 1.7 4.71e+05 1.5 0.0e+00 0.0e+00
4.6e+02  5  2  0  0 49  10  3  0  0 66   577    5656    230 8.99e-01  460
3.68e-03 100
VecNorm              240 1.0 1.5313e-01 1.2 2.46e+05 1.5 0.0e+00 0.0e+00
2.4e+02  2  1  0  0 25   5  2  0  0 34   783    4140      0 0.00e+00  240
1.92e-03 100
VecCopy               20 1.0 3.9648e-03 2.4 0.00e+00 0.0 0.0e+00 0.0e+00
0.0e+00  0  0  0  0  0   0  0  0  0  0     0       0      0 0.00e+00    0
0.00e+00  0
VecSet               250 1.0 4.8203e-02 1.7 0.00e+00 0.0 0.0e+00 0.0e+00
0.0e+00  1  0  0  0  0   1  0  0  0  0     0       0      0 0.00e+00    0
0.00e+00  0
VecAXPY              460 1.0 6.6492e-02 1.4 4.71e+05 1.5 0.0e+00 0.0e+00
0.0e+00  1  2  0  0  0   2  3  0  0  0  3460    5734      0 0.00e+00    0
0.00e+00 100
VecAYPX              220 1.0 4.4230e-02 1.9 2.25e+05 1.5 0.0e+00 0.0e+00
0.0e+00  1  1  0  0  0   1  1  0  0  0  2487    3157      0 0.00e+00    0
0.00e+00 100
VecScatterBegin      230 1.0 7.2590e-02 2.9 0.00e+00 0.0 2.3e+06 2.7e+02
0.0e+00  1  0 81 64  0   1  0100100  0     0       0      0 0.00e+00  460
2.46e+00  0
VecScatterEnd        230 1.0 4.1541e-0213.3 0.00e+00 0.0 0.0e+00 0.0e+00
0.0e+00  0  0  0  0  0   1  0  0  0  0     0       0      0 0.00e+00    0
0.00e+00  0
VecHIPCopyTo         230 1.0 5.0658e-03 1.6 0.00e+00 0.0 0.0e+00 0.0e+00
0.0e+00  0  0  0  0  0   0  0  0  0  0     0       0    230 8.99e-01    0
0.00e+00  0
VecHIPCopyFrom       460 1.0 1.1580e-02 2.0 0.00e+00 0.0 0.0e+00 0.0e+00
0.0e+00  0  0  0  0  0   0  0  0  0  0     0       0      0 0.00e+00  460
1.80e+00  0
PCApply              230 1.0 2.4747e+00 1.1 0.00e+00 0.0 0.0e+00 0.0e+00
0.0e+00 40  0  0  0  0  80  0  0  0  0     0       0      0 0.00e+00    0
0.00e+00  0

I think it should (but might not currently) say in -ksp_view output.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220121/5d3e3f8c/attachment.html>


More information about the petsc-users mailing list