PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

an errer for a loop

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



Joined: 16 Mar 2012
Posts: 75

PostPosted: Mon May 21, 2012 8:25 am    Post subject: an errer for a loop Reply with quote

I compiled a code and get the error:

PGF90-W-0155-Invalid accelerator region:not a single-entry, single-exit region

what's that mean? what does a loop with a single-entry and single-exit region look like? please kindly give me hand

Thanks
Back to top
View user's profile
mkcolg



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

PostPosted: Mon May 21, 2012 8:54 am    Post subject: Reply with quote

Hi Teslalady,

Quote:
what's that mean?
It means your loop has some type statement which can cause the loop to exit before the end of the iteration count has been reached. Look for any STOP, EXIT, RETURN, or GO TO statement jumping out of the loop.

Quote:
what does a loop with a single-entry and single-exit region look like?
A DO loop that is guaranteed to execute every iteration. The most basic example:
Code:
DO I=1,N
   A(I) = 0.0
ENDDO


- 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