PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Use openacc ,and have an error with

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



Joined: 08 Mar 2012
Posts: 2

PostPosted: Thu May 31, 2012 5:35 am    Post subject: Use openacc ,and have an error with Reply with quote

Invalid accelerator region: not a single-entry single-exit region
[/code]!$acc kernels loop
DO q = 1, TNP

ENDIF

WHAT
Code:


Last edited by justpk on Wed Jun 06, 2012 8:30 am; edited 1 time in total
Back to top
View user's profile
mkcolg



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

PostPosted: Thu May 31, 2012 8:53 am    Post subject: Reply with quote

Hi justpk,

Looks like you missed commenting out one of your GOTO statements. GOTOs are fine to use so long as they jump inside the body of the loop, but this one looks think it jumps out of the loop.

- Mat
Back to top
View user's profile
justpk



Joined: 08 Mar 2012
Posts: 2

PostPosted: Thu May 31, 2012 7:15 pm    Post subject: Reply with quote

mkcolg wrote:
Hi justpk,

Looks like you missed commenting out one of your GOTO statements. GOTOs are fine to use so long as they jump inside the body of the loop, but this one looks think it jumps out of the loop.

- Mat
Quote:

hi mat,
thank u verymuch,but if i use gotos ,will openacc work? openacc should be single-entry single-exit?
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Jun 01, 2012 8:11 am    Post subject: Reply with quote

Quote:
thank u verymuch,but if i use gotos ,will openacc work? openacc should be single-entry single-exit?
The compute region must have a single entry and exit. The reason is that a early exit is a dependent operation forcing the loop to performed sequentially.

However, if the GOTO jumps within a single compute region, then it's fine to use.

- 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