PGI GPU/CUDA Programming on the Princeton adroit cluster

o PGI CUDA Fortran Manual, examples, and overviews


o The adroit cluster 

  Portal,, can be ssh-ed from PPPL portals.
  Apply for access through
  Support is available from Computational Science and Engineering
  via e-mail address  

o Using the GPU software on adroit-001 and adroit-002

  On adroit-001 or adroit-002, you can run:
    $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib
    $ /usr/local/NVIDIA_CUDA_SDK/C/bin/linux/release/deviceQuery
  to get info on the Tesla itself.

  Through PBS, you need to give the "tesla" attribute:
    #PBS -l nodes=2:ppn=8:tesla,walltime=10:00:00

o Building a program on adroit-001 or adroit-002

  $ module load pgi/9.0/64 
  $ NVIDIA=/usr/local/cuda
  $ export PATH=$NVIDIA/bin:$PATH

  $ pgfortran -o f1.exe f1.f90 -ta=nvidia -Minfo=accel -fast
  $ ./f1.exe

Updated: November 6, 2009