I have a question..I would try to apply this openMP code into the program :
#pragma omp parallel for collapse(2)
for(int i = 0; i < rowsA; ++i){
for(int j = 0; j < colsB; ++j){
for(int k = 0; k < colsA; ++k){
/****do something ****/
}
}
}
I would like to use collapse(2)
to parallelize only the 2 outer loops, and I don't really want to parallelize the innermost loop..is this code allowed by openMP?? any suggestion or help is really appreciated..thx beforehand
Aucun commentaire:
Enregistrer un commentaire