Skip to content

farhaddaei/openacc_fortran_examples

 
 

Repository files navigation

Simple OpenACC Fortran Examples

Author: Jeng Bai-Cheng(rjeng@nvidia.com)

An example code is worth a thousand words. This repository intends to host fundamental, but useful examples. Each example is just a few dozen lines of code. Most of them come from my past experience in HPC projects, but readers do not need to have the HPC background to understand the examples.

Eexamples

Basic

MPI

Profiling

  • auto_nvtx - use compiler to insert CPU profiling routines automatically
  • profiling_range - demonstration of focused profiling via profiling tool

Requirement

  • NVIDIA HPC SDK 21.3

To install HPC SDK via Docker, visit NVIDIA GPU Cloud: https://ngc.nvidia.com/catalog/containers/nvidia:nvhpc/tags

Or download HPC SDK from official website: https://developer.nvidia.com/hpc-sdk

Bulid

$ cd <folder>
$ make

Run

$ cd <folder>
$ ./<executable>

About

Simple OpenACC Fortran Examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 75.3%
  • Makefile 11.6%
  • C++ 10.4%
  • Cuda 2.7%