summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.cc
diff options
context:
space:
mode:
authorAhmed El-Shafiey <[email protected]>2012-12-20 23:19:36 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:24 -0700
commite5516925760944519a674d0e5ac94d7dbd4d2788 (patch)
treeaa884a02cc2b731dd918bf0547b164ccf4ed85f0 /src/gpgpu-sim/gpu-sim.cc
parent9333cfbf261666ac2a3d40b712b6cbb3346d8c00 (diff)
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]
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.cc')
-rw-r--r--src/gpgpu-sim/gpu-sim.cc2
1 files changed, 2 insertions, 0 deletions
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 <stdio.h>