OpenMP the main loops