我正在尝试学习openmp并试图通过添加" #pragma omp parallel for"来并行运行第二个循环,但是它没有任何建议吗?
if (hi - lo > 3) {
for ( i = hi-4; i >= lo; i-- ) {
tmp = fmap[i];
ec_tmp = eclass[tmp];
#pragma omp parallel for
for ( j = i+4; j <= hi && ec_tmp > eclass[fmap[j]]; j += 4 )
fmap[j-4] = fmap[j];
fmap[j-4] = tmp;
}
}