dorsal team mailing list archive
-
dorsal team
-
Mailing list archive
-
Message #00610
PETSc GPU support in Dorsal
Hi,
As part of my master's, I am extending Dolfin to make use of PETSc's CUDA
support. My work will hopefully be merged into Dolfin 1.1, and it would be
nice to have Dorsal build PETSc 3.2 with support for CUDA.
I have branched Dorsal and tried to implement this. It fetches a few extra
packages, but I am not sure if it can (or should) fetch and build the CUDA
toolkit. Right now, the user must install the CUDA toolkit manually, then
modify the chosen platform file to contain the variable CUDA_DIR, and add
"cusp" and "thrust" packages to the list. This kind of manual configuration
by the user is of course not optimal, does anyone have any input on how
this can be done better?
If we could detect the presence of the CUDA compiler (nvcc) on the user's
path and check that it meets the minimum version requirement, could we then
set CUDA_DIR and add cusp and thrust to the list of packages automatically?
My branch is at lp:~fredva/dorsal/dorsal-gpu. The changes are in {petsc,
cusp, thrust}.package.
It's stil a long time before Dolfin 1.1, so there is no rush getting this
into Dorsal. It would be nice for developers wanting to test the GPU code
though.
--
Fredrik
Follow ups