message: Rework to compile.
diff: @@ -48,12 +48,13 @@ void REDUCE_STRUCT::runOpenMPTargetVariant(VariantID vid,
  const Index_type ibegin = 0;
  const Index_type iend = getActualProblemSize();
  -// REDUCE_STRUCT_DATA_SETUP;
  -
  if ( vid == Base_OpenMPTarget ) {
  REDUCE_STRUCT_DATA_SETUP_OMP_TARGET;
  + Real_ptr xa = points.x;
  + Real_ptr ya = points.y;
  +
  startTimer();
  for (RepIndex_type irep = 0; irep < run_reps; ++irep) {
  @@ -61,7 +62,7 @@ void REDUCE_STRUCT::runOpenMPTargetVariant(VariantID vid,
  Real_type xmin = m_init_min; Real_type ymin = m_init_min;
  Real_type xmax = m_init_max; Real_type ymax = m_init_max;
  - #pragma omp target is_device_ptr(points.x, points.y) device( did ) map(tofrom:xsum, xmin, xmax, ysum, ymin, ymax)
  + #pragma omp target is_device_ptr(xa, ya) device( did ) map(tofrom:xsum, xmin, xmax, ysum, ymin, ymax)
  #pragma omp teams distribute parallel for thread_limit(threads_per_team) schedule(static,1) \
  reduction(+:xsum) \
  reduction(min:xmin) \
  @@ -70,7 +71,12 @@ void REDUCE_STRUCT::runOpenMPTargetVariant(VariantID vid,
  reduction(min:ymin), \
  reduction(max:ymax)
  for (Index_type i = ibegin; i < iend; ++i ) {
  - REDUCE_STRUCT_BODY;
  + xsum += xa[i] ;
  + xmin = RAJA_MIN(xmin, xa[i]) ;
  + xmax = RAJA_MAX(xmax, xa[i]) ;
  + ysum += ya[i] ;
  + ymin = RAJA_MIN(ymin, ya[i]) ;
  + ymax = RAJA_MAX(ymax, ya[i]) ;
  }
  points.SetCenter(xsum/points.N, ysum/points.N);
  