  }
  };
  #elif defined(MINIFE_ELL_MATRIX)
-@@ -553,6 +565,11 @@ void operator()(MatrixType& A,
+@@ -553,6 +567,13 @@ void operator()(MatrixType& A,
          ScalarType* ycoefs = &y.coefs[0];
    ScalarType beta = 0;
  
 +#ifndef NO_GEOPM
-+  uint64_t R_ID;
-+  geopm_prof_region( "PHASE_MATVEC", GEOPM_REGION_HINT_COMPUTE, &R_ID);
++  static uint64_t R_ID = 0;
++  if (R_ID == 0) {
++      geopm_prof_region( "PHASE_MATVEC", GEOPM_REGION_HINT_COMPUTE, &R_ID);
++  }
 +  geopm_prof_enter( R_ID);
 +#endif
    #pragma omp parallel for
    for(int row=0; row<n; ++row) {
      ScalarType sum = beta*ycoefs[row];
-@@ -566,6 +583,9 @@ void operator()(MatrixType& A,
+@@ -566,6 +587,9 @@ void operator()(MatrixType& A,
  
      ycoefs[row] = sum;
    }

From 4e8acba5ebf953eee85cdcf22cb9f50f7304a6a3 Mon Sep 17 00:00:00 2001
From: "Steve S. Sylvester" <steve.s.sylvester@intel.com>
Date: Thu, 10 Nov 2016 11:32:13 -0800
Subject: [PATCH] Adding geopm markup to CORAL version of miniFE.

#  Copyright (c) 2015, 2016, 2017, 2018, Intel Corporation

       TICK(); waxpby(one, r, zero, r, p); TOCK(tWAXPY);
     }
-- 
2.12.3

