Hello,

I am solving *N* ODE system using Runge Kutta 4.5 with adaptive step, the 
consequence of this is the following pattern.

float * a =  .... 

bool b(true)

for(i:n){ // <------------------------- should vectorise here 
   while(b){
        foo(a[i]);
         if( is_ok(a[i]))
              b = false;
   }
}

Objectively this think does not vectorise with a normal compiler. And it 
will never. 
However does ISPC will do the job ? Does ISPC will be enough clever to 
during the wile to gather/scatter potential a[i]
that satisfy the conditional step is_ok(a[i])

I know I could do this in intrinsics but I would like to avoid

Best,

Tim




-- 
You received this message because you are subscribed to the Google Groups 
"Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to