diff options
| author | Tayler Hetherington <[email protected]> | 2013-04-03 11:17:41 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:06 -0700 |
| commit | 49d9395b32cae5d5a15b932f841a0888a98d4d31 (patch) | |
| tree | 3c1ad446351b23f20262075c9d7fd157df27aa46 /src/gpuwattch/cacti/cacti.mk | |
| parent | 63ced796dc4b66ef2e3f8ab7b768b84c11251126 (diff) | |
Fix incorrect initialization of wire_length variable in cacti/wire.cc - causing incorrect per-access cache energy
Adding 32bit/64bit check to Cacti's Makefile.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15668]
Diffstat (limited to 'src/gpuwattch/cacti/cacti.mk')
| -rw-r--r-- | src/gpuwattch/cacti/cacti.mk | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gpuwattch/cacti/cacti.mk b/src/gpuwattch/cacti/cacti.mk index ca921a5..506f3af 100644 --- a/src/gpuwattch/cacti/cacti.mk +++ b/src/gpuwattch/cacti/cacti.mk @@ -21,8 +21,15 @@ endif #CXXFLAGS = -Wall -Wno-unknown-pragmas -Winline $(DBG) $(OPT) CXXFLAGS = -Wno-unknown-pragmas $(DBG) $(OPT) -CXX = g++ -m32 -CC = gcc -m32 + +ifeq ($(shell getconf LONG_BIT),64) + CXX = g++ -m64 + CC = gcc -m64 +else + CXX = g++ -m32 + CC = gcc -m32 +endif + SRCS = area.cc bank.cc mat.cc main.cc Ucache.cc io.cc technology.cc basic_circuit.cc parameter.cc \ decoder.cc component.cc uca.cc subarray.cc wire.cc htree2.cc \ @@ -54,4 +61,4 @@ obj_$(TAG)/%.o : %.cc clean: -rm -f *.o _cacti.so cacti.py $(TARGET) -include ../Makefile.makedepend +#include ../Makefile.makedepend |
