[petsc-users] GPUs and the float-double dilemma

Ces VLC cesarillovlc at gmail.com
Fri Feb 10 15:32:23 CST 2023


El El vie, 10 feb 2023 a las 21:44, Barry Smith <bsmith at petsc.dev> escribió:

>
>    What is the use case you are looking for that cannot be achieved by
> just distributing a single precision application? If the user is happy when
> they happen to have GPUs to use single precision everywhere, then why would
> they need double precision if they happen not to have a GPU?
>
>    Are you just using KSP or also SNES, TS etc?


Thanks for your replies. The use case is structural analysis (so, sparse
symmetrical matrix, and minimum degree reorder tends to work fine in CPU
(for GPU I’ll need to check the best performing scenarios).

Obviously, this use case requires double precision. But single precision
might be fine enough for faster low quality runs if the user happens to
have a GPU that accelerates float and not double (I have a 12GB Pascal
Titan, it accelerates float, not double).

Kind regards,

César
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230210/9f8fc6f2/attachment.html>


More information about the petsc-users mailing list