[petsc-dev] Checking for PETSc Cuda Support

Dave Nystrom Dave.Nystrom at tachyonlogic.com
Mon Mar 19 22:15:29 CDT 2012


Jed Brown writes:
 > On Mon, Mar 19, 2012 at 21:55, Dave Nystrom <dnystrom1 at comcast.net> wrote:
 > 
 > > Is there a way to ask PETSc if it has cuda support compiled in from a
 > > Fortran
 > > code?
 > >
 > 
 > #ifdef PETSC_HAVE_CUDA
 > 
 > #endif

OK.  I was thinking of a function but that should work.

Thanks,

Dave



More information about the petsc-dev mailing list