I need to do something like this
#pragma omp parallel{
#pragma omp for
for_1(){
for_2(){
do_something();
}
#pragma omp barrier //wait for all threads to finish after the inner for
continue_with_something_else_in parallel();
}
}
The compiler tells me I can't put a barrier there. Does anyone knows how can I solve this?