Difference between revisions of "OpenACC"

From PHASTA Wiki
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 15:22, 15 July 2013

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