jeng1220 / openacc_fortran_examples

Simple OpenACC Fortran Examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Fortran 75.2%Language:Makefile 11.6%Language:C++ 10.0%Language:Cuda 2.5%Language:CMake 0.7%