[Omp] directive for

Celso Crivelaro celsocr at bol.com.br
Wed Oct 5 08:31:39 PDT 2005


Hi!
I have a doubt about about the directive for:

#pragma paralle for
  for(i=0;i<N;i++){
     for(j=0;j<M;j++){
        for(k=0;j<P;k++){
             a[i][j][k] = i+j+k;
}}}

in that case, all threads are going to divide all loops among them or just the first for?

[ ]s
Celso





More information about the Omp mailing list