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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -