NVIDIA GPU Computing SDK
The NVIDIA GPU Computing SDK provides various examples in CUDA C (and in older versions also examples in OpenCL C). They can be used to verify the correct setup of the GPU, as starting point for your own application and to give you an idea how to implement certain algorithms on a GPU.
Please Note
The CUDA samples come with the CUDA toolkits. Thus, they can be found in the cluster's toolkit installation path (denoted in the environment variable $CUDA_ROOT after loading CUDA).You need write permissions to build the examples. Therefore, copy the samples directory to your home or work directory (by following symbolic links):
module load CUDA/11.5.0
cp -r -L $CUDA_ROOT/samples $WORK/
Then go to samples and make all CUDA examples by denoting the installation path.
make CUDA_INSTALL_PATH=$CUDA_ROOT
If you would like to build only selected examples, you can find the source codes in the samples folder as well. In either case you will find the executables in bin -> linux -> release.