message: Changed PRESSURE kernel to use omp region and nowait.
diff: @@ -120,32 +120,26 @@ void PRESSURE::runKernel(VariantID vid)
  #if defined(RAJA_ENABLE_OPENMP) && defined(RUN_OPENMP)
  case Base_OpenMP : {
  -//
  -// NOTE: This kernel should be written to have an OpenMP parallel
  -// region around it and then use an OpenMP for-nowait for
  -// each loop inside it. We currently don't have a clean way to
  -// do this in RAJA. So, the base OpenMP variant is coded the
  -// way it is to be able to do an "apples to apples" comparison.
  -//
  -// This will be changed in the future when the required feature
  -// is added to RAJA.
  -//
  -
  PRESSURE_DATA_SETUP_CPU;
  startTimer();
  for (RepIndex_type irep = 0; irep < run_reps; ++irep) {
  - #pragma omp parallel for schedule(static)
  + #pragma omp parallel
  + {
  +
  + #pragma omp for nowait
  for (Index_type i = ibegin; i < iend; ++i ) {
  PRESSURE_BODY1;
  }
  - #pragma omp parallel for schedule(static)
  + #pragma omp for nowait
  for (Index_type i = ibegin; i < iend; ++i ) {
  PRESSURE_BODY2;
  }
  + } // end omp parallel region
  +
  }
  stopTimer();
  @@ -159,16 +153,20 @@ void PRESSURE::runKernel(VariantID vid)
  startTimer();
  for (RepIndex_type irep = 0; irep < run_reps; ++irep) {
  - RAJA::forall<RAJA::omp_parallel_for_exec>(
  + RAJA::region<RAJA::omp_parallel_region>( [=]() {
  +
  + RAJA::forall<RAJA::omp_for_nowait_exec>(
  RAJA::RangeSegment(ibegin, iend), [=](int i) {
  PRESSURE_BODY1;
  });
  - RAJA::forall<RAJA::omp_parallel_for_exec>(
  + RAJA::forall<RAJA::omp_for_nowait_exec>(
  RAJA::RangeSegment(ibegin, iend), [=](int i) {
  PRESSURE_BODY2;
  });
  + }); // end omp parallel region
  +
  }
  stopTimer();
  