PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Loop not vectorized/parallelized: potential early exits

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



Joined: 24 May 2011
Posts: 6

PostPosted: Tue Feb 21, 2012 10:11 pm    Post subject: Loop not vectorized/parallelized: potential early exits Reply with quote

The following loop is not vectorized due to "potential early exits". But I cannot see how this could be: no change to the loop variable, no break.
Thanks for enlightening me!
mario

Code:
                for(j=N-1, jnew=mNumGoodFreq-1; j >= 0; --j)
                    if(mGoodFreq[j])
                    {
                        mV[j*N + i] = mU[jnew*mNumGoodFreq + inew] * mSqrtCodonFreq[j];
                        --jnew;
                    }
                    else
                    {
                        mV[j*N + i] = (i == j) ? 1. : 0.;
                    }
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Feb 22, 2012 9:29 am    Post subject: Reply with quote

Hi Mario,

Can you post a reproducible example?

Thanks,
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