Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can PETSc use GPUs to speedup computations?

computations GPUs petsc speedup
0
10 Posted

Can PETSc use GPUs to speedup computations?

0
10

PETSc-dev has some support for running portions of the computation on Nvidia GPUs. See installation.html for how to install PETSc to use GPUs. PETSc has a Vec class VECCUDA that performs almost all the vector operations on the GPU. The Mat class MATCUDA performs matrix-vector products on the GPU but does not have matrix assembly on the GPU yet. Both of these classes run in parallel with MPI. All KPS methods, except KSPIBCGS, run all their vector operations on the GPU thus, for example Jacobi preconditioned Krylov methods run completely on the GPU. Preconditioners are a problem, we could do with some help for these. The example src/snes/examples/tutorials/ex47cu.cu demonstates how the nonlinear function evaluation can be done on the GPU.

0
10

PETSc-dev has some support for running portions of the computation on Nvidia GPUs. See installation.html for how to install PETSc to use GPUs. PETSc has a Vec class VECCUSP that performs almost all the vector operations on the GPU. The Mat class MATCUSP performs matrix-vector products on the GPU but does not have matrix assembly on the GPU yet. Both of these classes run in parallel with MPI. All KPS methods, except KSPIBCGS, run all their vector operations on the GPU thus, for example Jacobi preconditioned Krylov methods run completely on the GPU. Preconditioners are a problem, we could do with some help for these. The example src/snes/examples/tutorials/ex47cu.cu demonstates how the nonlinear function evaluation can be done on the GPU.

0

PETSc-dev has some support for running portions of the computation on Nvidia GPUs. See installation.html for how to install PETSc to use GPUs. PETSc has a Vec class VECCUSP that performs almost all the vector operations on the GPU. The Mat class MATCUSP performs matrix-vector products on the GPU but does not have matrix assembly on the GPU yet. Both of these classes run in parallel with MPI. All KPS methods, except KSPIBCGS, run all their vector operations on the GPU thus, for example Jacobi preconditioned Krylov methods run completely on the GPU. Preconditioners are a problem, we could do with some help for these. The example src/snes/examples/tutorials/ex47cu.cu demonstates how the nonlinear function evaluation can be done on the GPU. Can I run PETSc with exended precision Yes, with gcc 4.6 and later (and gfortran 4.6 and later) ./configure PETSc using the options –with-precision=__float128 –download-qblaslapack. External packages cannot be used in this mode and some print statemen

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123