 
 #include "tools/test/perf/cutlass_perf_test.h"
 
-static std::vector<perf::GemmProfileFunc*> GemmProfileFuncs;
+static std::vector<perf::GemmProfileFunc*>* GemmProfileFuncs=NULL;
 
 //
 // Profiling entry points defined in corresponding .cu files

namespace perf {

void RegisterGemmProfileFunc(GemmProfileFunc * profileFunc) {
  GemmProfileFuncs.push_back(profileFunc);
}

}  // namespace perf


  int result = 0;

      std::vector<perf::GemmProfileFunc*> profileFuncs = *GemmProfileFuncs;
      profileFuncs.push_back(0); // Passing as array reference below, so need NULL termination.
      perf::TestbenchOutput<perf::GemmProblem> output_gemm(options);
      result = profile(&profileFuncs[0], output_gemm, options, result);
