PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Compiling standard f90 files with pgaccel

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
aharbilx



Joined: 20 Oct 2013
Posts: 2

PostPosted: Thu Apr 24, 2014 2:28 pm    Post subject: Compiling standard f90 files with pgaccel Reply with quote

Hi everybody,

I am newbie in gpgpu programming and compiling.
I have a simple question about my f90 files that run normally on CPU using gfortran and ifort, I want to know if it's possible to run the same code in my amd gpu without rewriting my standard files using pg accelerator FORTRAN.

Thank in advance.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Thu Apr 24, 2014 2:38 pm    Post subject: Reply with quote

Hi aharbilx,

PGI does target several AMD GPU and APUs using OpenACC directives (current those base on the Tahiti, Cape Verde, and Spectre architectures). Though you will need to add the directive around the compute intensive loops you wish to accelerate so some rewriting will be necessary. However, directives are treated as comments by compilers which don't recognize them so the code would still be able to be compiled by other compilers.

I would suggest looking at our OpenACC page (http://www.pgroup.com/resources/accel.htm) and spending a bit of time watching a webinar or two. You can then decide if OpenACC is a good fit for what you wish to accomplish.

- Mat
Back to top
View user's profile
aharbilx



Joined: 20 Oct 2013
Posts: 2

PostPosted: Fri Apr 25, 2014 1:16 pm    Post subject: Reply with quote

Than you mkcolg,
another question about amd appml, is the LAPACK, BLAS and FFT librairies are GPU ready, in other word if i won't change my fortran code but when link it to amd appml is some calculation goes to gpu. if yes how to do compiling.
Thanks in avance
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Fri Apr 25, 2014 2:29 pm    Post subject: Reply with quote

I've never used clMath (the new name for appml) so don't know if they provide an Fortran interface module or if you'll need to write one yourself. You'll need to ask the library authors.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group