cuda_fortran


Introduction:

CUDA_FORTRAN discusses issues of using CUDA with a FORTRAN program,
to enable parallel programming on a Graphics Processing Unit (GPU);

Web Site:

The CUDA home page at nvidia.com:

https://developer.nvidia.com/cuda-zone

Reference:

Usage:

On any ARC cluster, check the installation details
by typing “module spider cuda”.

CUDA with FORTRAN requires that the appropriate modules be loaded before it can
be used. One version of the appropriate commands for use on NewRiver is:

module purge
module load cuda/8.0.44
module load pgi/17.5
    

Examples:

The following batch file demonstrates the use of CUDA with FORTRAN:

#! /bin/bash
#
#PBS -l walltime=00:05:00
#PBS -l nodes=1:ppn=1:gpus=1
#PBS -W group_list=newriver
#PBS -q p100_dev_q
#PBS -A arctest
#PBS -j oe
#
cd $PBS_O_WORKDIR
#
module purge
module load cuda/8.0.61
module load pgi/17.5
#
pgf90 -Mcuda=cc60 -o saxpy_test saxpy_test.cuf
#
./saxpy_test

A complete set of files to carry out a similar process are available in
cuda_fortran.tar