~fredva/dorsal/dorsal-gpu

« back to all changes in this revision

Viewing changes to USAGE

  • Committer: Fredrik Valdmanis
  • Date: 2012-03-13 08:16:44 UTC
  • Revision ID: fredrik@valdmanis.com-20120313081644-0w7exyc2bxxpumn0
Usage instructions updated for PETSc+Cusp

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
 
195
195
      ./dorsal.sh FEniCS/platforms/supported/myplatform.platform
196
196
 
 
197
 Installing FEniCS with CUDA support
 
198
 
 
199
  Dorsal can build PETSc with support for CUDA, using the Cusp and Thrust
 
200
  libraries. This enables DOLFIN to use PETSc's interfacing to Cusp for GPU
 
201
  acceleration of the solution of linear systems. Before builing with Dorsal, 
 
202
  you must manually install CUDA and verify the installation. Instructions
 
203
  are provided at NVIDIA's webpages: www.nvidia.com.
 
204
  
 
205
  After instaling CUDA, do the following to have Dorsal build PETSc
 
206
  with CUDA support:
 
207
 
 
208
   1. Set the variable CUDA_DIR, either in your environment:
 
209
 
 
210
       export CUDA_DIR=<path to cuda install> (default /usr/local/cuda)
 
211
 
 
212
      or in the .platform file corresponding to your system:
 
213
     
 
214
       default CUDA_DIR=<path to cuda install>
 
215
 
 
216
   2. Add "cusp" to the list of packages to install in your the .platform-file
 
217
      corresponding to your system. It's important to add "cusp" before "petsc",
 
218
      like this:
 
219
 
 
220
      PACKAGES=(
 
221
      cusp
 
222
      ...
 
223
      petsc
 
224
      ...
 
225
      dolfin
 
226
      )
 
227
 
 
228
   3. Invoke dorsal.sh as usual.
 
229
 
197
230
 
198
231
 Troubleshooting and getting help
199
232