OpenACC

From PHASTA Wiki
Revision as of 15:22, 15 July 2013 by Matthb2 (talk | contribs) (Created page with "OpenACC is is a compiler extension which allows you to annotate your code such that the compiler can generate GPU accelerated binaries. The PGI compiler available on the viz node...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

OpenACC is is a compiler extension which allows you to annotate your code such that the compiler can generate GPU accelerated binaries. The PGI compiler available on the viz nodes supports OpenACC and can generate code for the viz node's GPUs.

Use

Currently, CUDA requires <= gcc 4.6, so you'll need to

 soft add +gcc-4.6
 soft add +pgi-64bit

Then you can compile your annotated code

 pgfortran -acc -Minfo=acc -o gputest test.f
 pgfortran -O3 -o cputest test.f
 time ./gputest
 time ./cputest