Difference between revisions of "Openacc"

From Tau Wiki
Jump to: navigation, search
(Matrix Multiply)
Line 8: Line 8:
 
TAU has support for the OpenACC directives available in PGI 12.3 and greater. Configure TAU:
 
TAU has support for the OpenACC directives available in PGI 12.3 and greater. Configure TAU:
  
  ./configure -c++=pgCC -cc=pgcc -fortran=pgi -cuda=<path to CUDA 4.1 or greater>
+
  ./configure -c++=pgCC -cc=pgcc -fortran=pgi
 
  make install
 
  make install
  
  export TAU_MAKEFILE=<path to TAU>/x86_64/lib/Makefile.tau-cupti-pgi
+
  export TAU_MAKEFILE=<path to TAU>/x86_64/lib/Makefile.tau-pgi
 
  export TAU_OPTIONS='-optVerbose -optShared'
 
  export TAU_OPTIONS='-optVerbose -optShared'
  
 
Compile
 
Compile
  
  tau_f90.sh -ta=nvidia,time -Minfo matmult.f90 -o matmult
+
  make
  
 
Run:
 
Run:
  
  tau_exec -T serial,cupti -cupti ./matmult
+
  ./mm
 
  module  
 
  module  
 
Use TAU analysis tool to view performance data:
 
Use TAU analysis tool to view performance data:
Line 26: Line 26:
 
  pprof
 
  pprof
 
  paraprof
 
  paraprof
 +
 +
[[Image:openacc_profile1|750px]]
 +
 +
[[Image:openacc_profile1|750px]]
 +
 +
[[Image:openacc_profile1|750px]]
 +
 +
[[Image:openacc_profile1|750px]]
 +
 +
[[Image:openacc_profile1|750px]]

Revision as of 19:55, 15 March 2012


Matrix Multiply

TAU has support for the OpenACC directives available in PGI 12.3 and greater. Configure TAU:

./configure -c++=pgCC -cc=pgcc -fortran=pgi
make install
export TAU_MAKEFILE=<path to TAU>/x86_64/lib/Makefile.tau-pgi
export TAU_OPTIONS='-optVerbose -optShared'

Compile

make

Run:

./mm
module 

Use TAU analysis tool to view performance data:

pprof
paraprof

750px

750px

750px

750px

750px