-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.py
93 lines (78 loc) · 5.22 KB
/
configuration.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
from benchmarks.npb import *
from benchmarks.npb_cseq import BenchmarkNPB_CSEQ
from benchmarks.ssca3 import *
from benchmarks.matrix_multiplication import *
from benchmarks.matrix_multiplication_seq import *
from benchmarks.sobel import *
from benchmarks.sobel_seq import *
from benchmarks.random_access import *
from benchmarks.random_access_seq import *
from benchmarks.random_access2 import *
from benchmarks.random_access2_seq import *
from benchmarks.matrix_multiplication import *
from benchmarks.upcbench_matrix_multiplication import *
from benchmarks.apo_stencil import *
from instance import *
from platforms.berkeley_tile import *
from platforms.berkeley_trace import *
from platforms.berkeley import *
from platforms.cray_xt5 import *
from platforms.cray_upc import *
from platforms.tilecc import *
from platforms.gcc import *
from platforms.gcc_upc import *
from platforms.simics import *
from util import get_hostname
def generate_instances(check_platform=False):
print("Generating instances...")
instances = []
core_list = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512]
instances.extend( get_instance_list(
BenchmarkApo(),
PlatformCrayUPC(param_cores=[128, 256, 512, 1024]),
check_platform) )
instances.extend( get_instance_list(
BenchmarkApo(),
PlatformBerkeley(param_cores=core_list, conduits=['ibv']),
check_platform) )
return instances
instances.extend( get_instance_list(
BenchmarkNPB(minClass='C', maxClass='D', kernel_list=['ft']),
PlatformCrayUPC(param_cores=[128, 256, 512, 1024]),
check_platform) )
instances.extend( get_instance_list(
BenchmarkNPB(minClass='B', maxClass='C', kernel_list=None),
PlatformCrayUPC(param_cores=[16, 32, 64, 128, 256, 512, 1024]),
check_platform) )
if get_hostname() == 'bulldozer-server':
instances.extend(get_instance_list(BenchmarkUBMatrixMultiplication(), PlatformBerkeley(param_cores=[1, 2, 4, 8, 16, 32], conduits=['smp']), check_platform) ) # disable_optimization=True, experimental=True
return instances
if False:
instances.extend(get_instance_list(BenchmarkNPB(maxClass='B', minClass='B', kernel_list=['ft']), PlatformBerkeleyTrace(param_cores=core_list, conduits=['ibv']), check_platform))
instances.extend(get_instance_list(BenchmarkNPB(minClass='B', maxClass='B', kernel_list=['ft']), PlatformBerkeley(param_cores=core_list, conduits=['ibv']), check_platform) ) # disable_optimization=True, experimental=True
instances.extend(get_instance_list(BenchmarkNPB(maxClass='A', minClass='A', kernel_list=['ft', 'cg', 'is', 'mg']), PlatformBerkeleyTrace(param_cores=core_list, conduits=['ibv']), check_platform))
instances.extend(get_instance_list(BenchmarkNPB(minClass='A', maxClass='A', kernel_list=['ft', 'cg', 'is', 'mg']), PlatformBerkeley(param_cores=core_list, conduits=['ibv']), check_platform) ) # disable_optimization=True, experimental=True
#instances.extend( get_instance_list(BenchmarkNPB(minClass='A', maxClass='A'), PlatformBerkeleyTile(), check_platform) ) # disable_optimization=True, experimental=True
#instances.extend( get_instance_list(BenchmarkNPB_CSEQ(minClass='A', maxClass='A'), PlatformTileCC(), check_platform) )
#instances.extend( get_instance_list(BenchmarkSSCA3(maxScale=3), PlatformCrayUPCxt5(), check_platform) )
#instances.extend( get_instance_list(BenchmarkSSCA3(maxScale=2, withFFTW=False), PlatformBerkeleyTile()) )
#instances.extend( get_instance_list(BenchmarkMatrixMultiplication(), PlatformBerkeleyTile(), check_platform) )
#instances.extend( get_instance_list(BenchmarkSobel(), PlatformBerkeleyTile(), check_platform) )
#instances.extend( get_instance_list(BenchmarkRandomAccess2(), PlatformBerkeleyTile(), check_platform) )
if False:
instances.extend( get_instance_list(BenchmarkMatrixMultiplication(), PlatformBerkeley(), check_platform) )
instances.extend( get_instance_list(BenchmarkSobel(), PlatformBerkeley(), check_platform) )
instances.extend( get_instance_list(BenchmarkRandomAccess(), PlatformBerkeley(), check_platform) )
instances.extend( get_instance_list(BenchmarkRandomAccess(), PlatformBerkeleyTile(), check_platform) )
instances.extend( get_instance_list(BenchmarkRandomAccessSeq(), PlatformTileCC(), check_platform) )
instances.extend( get_instance_list(BenchmarkRandomAccessSeq(), PlatformGCC(), check_platform) )
instances.extend( get_instance_list(BenchmarkRandomAccess2(), PlatformBerkeley(), check_platform) )
instances.extend( get_instance_list(BenchmarkRandomAccess2Seq(), PlatformTileCC(), check_platform) )
instances.extend( get_instance_list(BenchmarkRandomAccess2Seq(), PlatformGCC(), check_platform) )
instances.extend( get_instance_list(BenchmarkSobelSeq(), PlatformTileCC(), check_platform) )
instances.extend( get_instance_list(BenchmarkSobelSeq(), PlatformGCC(), check_platform) )
instances.extend( get_instance_list(BenchmarkMatrixMultiplicationSeq(), PlatformTileCC(), check_platform) )
instances.extend( get_instance_list(BenchmarkMatrixMultiplicationSeq(), PlatformGCC(), check_platform) )
print(len( instances ), " instances available.")
print("")
return instances