OpenMP parallel thread
问题 I need to parallelize this loop, I though that to use was a good idea, but I never studied them before. #pragma omp parallel for for(std::set<size_t>::const_iterator it=mesh->NEList[vid].begin(); it!=mesh->NEList[vid].end(); ++it){ worst_q = std::min(worst_q, mesh->element_quality(*it)); } In this case the loop is not parallelized because it uses iterator and the compiler cannot understand how to slit it. Can You help me? 回答1: OpenMP requires that the controlling predicate in parallel for