[petsc-dev] Checking for PETSc Cuda Support

Dave Nystrom dnystrom1 at comcast.net
Tue Mar 20 19:24:19 CDT 2012


Jed Brown writes:
 > On Mon, Mar 19, 2012 at 22:15, Dave Nystrom <dnystrom1 at comcast.net> wrote:
 > 
 > > OK.  I was thinking of a function but that should work.
 > 
 > subroutine does_petsc_have_cuda(does)
 > logical :: does
 > does = .false.
 > #ifdef PETSC_HAVE_CUDA
 > does = .true.
 > #endif
 > end subroutine

Well, I did not really mean for you to write such a trivial function because
of my comment above.  I certainly know how to write something like that.



More information about the petsc-dev mailing list