PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Parallelize a for loop -difficult!!!

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
THX 1138



Joined: 30 Jun 2011
Posts: 103

PostPosted: Fri Nov 02, 2012 11:21 am    Post subject: Parallelize a for loop -difficult!!! Reply with quote

I got the following error when I tried to parallize the loop

177, Intensity = 17.00
Loop not vectorized/parallelized: not countable

and the loop is

for(JZb=JZTRG;JZb!=JZBND;JZb=JZb+ISGN)

I am unsure as to what can be done if anything to parallelize this loop. Notice the stopping point is

;JZb!=JZBND

and ISGN is equal to one, but it can be equal to other numbers in other runs. It does not have to be equal to one.

Any help appreciated. Thanks in advance.


THX 1138
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Nov 05, 2012 2:47 pm    Post subject: Reply with quote

Quote:
and ISGN is equal to one, but it can be equal to other numbers in other runs. It does not have to be equal to one.
ISGN needs to be constant otherwise the trip count can change.

- Mat
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
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