aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--SConstruct4
-rw-r--r--include/pm_common.h9
3 files changed, 14 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4d26fe5..3f2f033 100644
--- a/Makefile
+++ b/Makefile
@@ -5,18 +5,18 @@
5 5
6all-64: 6all-64:
7 @echo "Legacy warning: Building is done with scons." 7 @echo "Legacy warning: Building is done with scons."
8 ARCH=x86_64 scons ${DEBUG} 8 ARCH=x86_64 scons ${DEBUG} DEFINE=${DEFINE}
9 mv libpm.so pm.so 9 mv libpm.so pm.so
10 @echo "Done" 10 @echo "Done"
11 11
12all-32: 12all-32:
13 @echo "Legacy warning: Building is done with scons." 13 @echo "Legacy warning: Building is done with scons."
14 ARCH=x86 scons ${DEBUG} 14 ARCH=x86 scons ${DEBUG} DEFINE=${DEFINE}
15 mv libpm.so pm.so 15 mv libpm.so pm.so
16 @echo "Done" 16 @echo "Done"
17 17
18all-sparc: 18all-sparc:
19 ARCH=sparc64 scons ${DEBUG} 19 ARCH=sparc64 scons ${DEBUG} DEFINE=${DEFINE}
20 20
21clean: 21clean:
22 @echo "Legacy warning: Building is now done with scons." 22 @echo "Legacy warning: Building is now done with scons."
diff --git a/SConstruct b/SConstruct
index 5f12f62..7f8a6e3 100644
--- a/SConstruct
+++ b/SConstruct
@@ -60,6 +60,10 @@ if arch not in SUPPORTED_ARCHS:
60else: 60else:
61 arch_flags = Split(SUPPORTED_ARCHS[arch]) 61 arch_flags = Split(SUPPORTED_ARCHS[arch])
62 62
63# add environment defined -D flags
64if 'DEFINE' in ARGUMENTS:
65 API_FLAGS = API_FLAGS + ' ' + ARGUMENTS['DEFINE']
66
63# add architecture dependent include search path 67# add architecture dependent include search path
64if arch in ['x86','x86_64']: 68if arch in ['x86','x86_64']:
65 include_arch = 'x86' 69 include_arch = 'x86'
diff --git a/include/pm_common.h b/include/pm_common.h
index 974dc9a..57ff4d2 100644
--- a/include/pm_common.h
+++ b/include/pm_common.h
@@ -27,8 +27,13 @@
27 * each round (easier for memory management), but running all test 27 * each round (easier for memory management), but running all test
28 * without human intervention 28 * without human intervention
29 */ 29 */
30/* working set size, in KB */ 30/*
31 * default working set size, in KB
32 * non-default WSS are taken from the test script (DEFINE=-DWSS=...)
33 */
34#ifndef WSS
31#define WSS 1024 35#define WSS 1024
36#endif
32/* Cache size: 37/* Cache size:
33 * Niagara: L2: 3MB 38 * Niagara: L2: 3MB
34 * Koruna: L2: 6MB every 2 cores 39 * Koruna: L2: 6MB every 2 cores
@@ -55,7 +60,7 @@
55/* number of "working sets" to cycle through */ 60/* number of "working sets" to cycle through */
56#define NUMWS ((CACHESIZE*2)/WSS)+2 61#define NUMWS ((CACHESIZE*2)/WSS)+2
57/* runtime in milliseconds -- 60s*/ 62/* runtime in milliseconds -- 60s*/
58#define SIMRUNTIME 15000 63#define SIMRUNTIME 60000
59/* times to read warm memory to get accurate data */ 64/* times to read warm memory to get accurate data */
60#define REFTOTAL 3 65#define REFTOTAL 3
61 66