Skip to content

CUDA

Warning

This page is currently under active development. Check back soon for more content.

CUDA is a general purpose parallel computing platform and programming model that leverages the parallel compute engine in NVIDIA GPUs to solve many complex computational problems in a more efficient way than on a CPU.

For full documentation:

CUDA C

A vector addition example written in CUDA C is provided in this NVIDIA blog and can be compiled with the nvcc compiler provided in the PrgEnv-nvidia environment on Perlmutter.

nvcc -o saxpy.ex saxpy.cu

CUDA Fortran

A vector addition example written in CUDA Fortran is provided in this NVIDIA blog and can be compiled with the nvfortran compiler provided in the PrgEnv-nvidia environment on Perlmutter.

nvfortran -o saxpy.ex saxpy.cuf

Preparing for Perlmutter

For info on CUDA for Perlmutter, please see the Native CUDA C/C++ and Memory Management, and other sections in the Perlmutter Readiness page.

Tutorials