Skip to content

jeng1220/openacc_fortran_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple OpenACC Fortran Examples

Author: Jeng Bai-Cheng([email protected])

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>