 
   int result = 0;
 
-      std::vector<perf::GemmProfileFunc*> profileFuncs = GemmProfileFuncs;
+      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);


#include "tools/test/perf/cutlass_perf_test.h"

static std::vector<perf::GemmProfileFunc*> GemmProfileFuncs;

//
// Profiling entry points defined in corresponding .cu files

namespace perf {

void RegisterGemmProfileFunc(GemmProfileFunc * profileFunc) {
if(GemmProfileFuncs==NULL)
	GemmProfileFuncs=new std::vector<perf::GemmProfileFunc*>();

  GemmProfileFuncs->push_back(profileFunc);
}

}  // namespace perf
