PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

for loop breaks
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Fri Oct 19, 2012 2:32 pm    Post subject: Reply with quote

I'm going to back track a bit here. I looked at the full source you sent and see that the "break" is in a for loop that gets inlined into a compute region. The "break" statement will prevent this for loop from being accelerated but does not prevent it from being executed sequentially within the body of the compute kernel. In other words, you just can't break out of a loop that is used to create the schedule. While loops and breaks are fine for code within the kernel.

- Mat


Last edited by mkcolg on Tue Oct 23, 2012 8:25 am; edited 1 time in total
Back to top
View user's profile
THX 1138



Joined: 30 Jun 2011
Posts: 102

PostPosted: Mon Oct 22, 2012 1:39 pm    Post subject: Reply with quote

When I eliminate the line with the break in it and only that line - I still get the same set of errors. Exactly the same! I assume it is because the if statement still in there and is creating a dependemcy?

Thanks in advance.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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