Sample Code for GPU | Read-only mirror of https://github.com/MeteoSwiss-APN/gpu_sample_code — MeteoSchweiz. Issues & pull requests at the source.
  • Fortran 75.5%
  • Shell 13.5%
  • CMake 7%
  • Cuda 3.7%
  • C++ 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-05-18 22:40:13 +02:00
arr_derived_openacc Updated summary table 2017-11-09 09:13:41 +01:00
detect_cuda Updating the cuda detection 2016-07-19 15:05:08 +02:00
mpi_openacc added mpi_gather test + openacc and compile scripts 2018-03-01 14:46:34 +01:00
openacc_cuda_sample Add MPI_finalize to cray workaround 2017-03-16 11:50:39 +01:00
test_openacc Test for array of derived types with pointers 2017-11-03 07:37:30 +01:00
LICENSE Create LICENSE 2024-05-18 22:40:13 +02:00
README.md Update README.md 2016-12-23 13:35:05 +01:00

GPU Sample Code

This code is used to test the setup of a CUDA and OpenACC installation.

Detect CUDA

Allows to determine whether CUDA has been setup correctly. The program also allows one to obtain the CUDA device compatibility.

OpenACC/CUDA Sample

A small test code that links a program with a OpenACC Fortran code with a CUDA C code.

MPI OpenACC

A test code mixing MPI and OpenACC.

Running the code

We have an ASCII cast that showcases usage of this code: https://asciinema.org/a/4dl86bm4eijnzhmvop2pxlikx