PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Beginner cudafortran questions

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



Joined: 24 Aug 2010
Posts: 34

PostPosted: Sat Aug 28, 2010 12:13 pm    Post subject: Beginner cudafortran questions Reply with quote

Hi, I apologize for how trivial some of my questions will be, I foresee myself asking alot of them here but hopefully I'll be able to find some help! I've programmed in CUDA before, and understand it pretty well. I don't have much experience with FORTRAN although I'm not completely useless with it. Anyways, I'm trying to convert a routine that's already written in FORTRAN to run in cudafortran.

I have made my first runthrough at coding it and can't seem to get it to debug. When I try to compile/run it I get these errors:

PGF90-S-0070-Incorrect sequence of statements (rieman.F90: 97)
PGF90-F-0004-Corrupt or Old Module file ./hydro_data.mod (rieman.F90: 118)

The lines listed here are the first lines of code in the file and they consist of simply:

use cudafor



subroutine rieman (numIntCells, numCells, &
rhoav, uav, utav, uttav, pav, &
urell, ugrdl, game, gameav, xnav, x)

Since this routine is part of a much larger module, I have to make the whole thing with the command gmake --jobs=8

in the makefile.h i've tried changing the compiler and linker to use pgf90 as opposed to mpif90 but this didnt work. Any idea what I'm doing wrong here?
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 395

PostPosted: Mon Aug 30, 2010 4:13 pm    Post subject: Reply with quote

Hello,

There is not much information in your post, but we can guess.

1. Incorrect sequence of stmts - you probably need the
'use cudafor'

stmt after others like
implicit none
or some parameter declarations.

2. Corrupt or old modfile. You need to re-compile the files containing the source
of 'hydro_data.mod' in order to create a modfile with a newer format supported
by the current compilers.

For a better programming discussion, look at
http://www.pgroup.com/lit/articles/insider/v2n1a4.htm
for some insight on how to program in CUDA fortran and using
the Accelerator model.
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