From e5516925760944519a674d0e5ac94d7dbd4d2788 Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Thu, 20 Dec 2012 23:19:36 -0800 Subject: 1- it seems like using #ifdef within a class definition confuses valgrind, replaced this with defining an empty class if #GPGPUSIM_POWER_MODEL is not defined. 2- fixing the makefile to make it actually compiles if the #GPGPUSIM_POWER_MODEL is not defined. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14858] --- src/gpgpu-sim/gpu-sim.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpgpu-sim/gpu-sim.cc') diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index 6cb237b..76137fb 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -64,6 +64,8 @@ #ifdef GPGPUSIM_POWER_MODEL #include "power_interface.h" +#else +class gpgpu_sim_wrapper {}; #endif #include -- cgit v1.3