how to parallel this for loop? -
i trying learn openmp , trying run second loop in parallel adding "#pragma omp parallel for",but not working suggestions?
if (hi - lo > 3) { ( = hi-4; >= lo; i-- ) { tmp = fmap[i]; ec_tmp = eclass[tmp]; #pragma omp parallel ( j = i+4; j <= hi && ec_tmp > eclass[fmap[j]]; j += 4 ) fmap[j-4] = fmap[j]; fmap[j-4] = tmp; } }
Comments
Post a Comment