run.py revision 1516
12847Sksewell@umich.eduimport Splash2 27783SGiacomo.Gabrielli@arm.com 39913Ssteve.reinhardt@amd.comif 'SYSTEM' not in env: 47783SGiacomo.Gabrielli@arm.com panic("The SYSTEM environment variable must be set!\ne.g -ESYSTEM=Detailed\n") 57783SGiacomo.Gabrielli@arm.com 67783SGiacomo.Gabrielli@arm.comif env['SYSTEM'] == 'Simple': 77783SGiacomo.Gabrielli@arm.com from SimpleConfig import * 87783SGiacomo.Gabrielli@arm.com BaseCPU.workload = Super.workload 97783SGiacomo.Gabrielli@arm.com SimpleStandAlone.cpu = [ CPU() for i in xrange(int(env['NP'])) ] 107783SGiacomo.Gabrielli@arm.com root = SimpleStandAlone 117783SGiacomo.Gabrielli@arm.comelif env['SYSTEM'] == 'Detailed': 127783SGiacomo.Gabrielli@arm.com from DetailedConfig import * 137783SGiacomo.Gabrielli@arm.com BaseCPU.workload = Super.workload 147783SGiacomo.Gabrielli@arm.com DetailedStandAlone.cpu = [ DetailedCPU() for i in xrange(int(env['NP'])) ] 155596Sgblack@eecs.umich.edu root = DetailedStandAlone 162847Sksewell@umich.eduelse: 172847Sksewell@umich.edu panic("The SYSTEM environment variable was set to something improper.\n Use Simple or Detailed\n") 182847Sksewell@umich.edu 192847Sksewell@umich.eduif 'BENCHMARK' not in env: 202847Sksewell@umich.edu panic("The BENCHMARK environment variable must be set!\ne.g. -EBENCHMARK=Cholesky\n") 212847Sksewell@umich.edu 222847Sksewell@umich.eduif env['BENCHMARK'] == 'Cholesky': 232847Sksewell@umich.edu root.workload = Splash2.Cholesky() 242847Sksewell@umich.eduelif env['BENCHMARK'] == 'FFT': 252847Sksewell@umich.edu root.workload = Splash2.FFT() 262847Sksewell@umich.eduelif env['BENCHMARK'] == 'LUContig': 272847Sksewell@umich.edu root.workload = Splash2.LU_contig() 282847Sksewell@umich.eduelif env['BENCHMARK'] == 'LUNoncontig': 292847Sksewell@umich.edu root.workload = Splash2.LU_noncontig() 302847Sksewell@umich.eduelif env['BENCHMARK'] == 'Radix': 312847Sksewell@umich.edu root.workload = Splash2.Radix() 322847Sksewell@umich.eduelif env['BENCHMARK'] == 'Barnes': 332847Sksewell@umich.edu root.workload = Splash2.Barnes() 342847Sksewell@umich.eduelif env['BENCHMARK'] == 'FMM': 352847Sksewell@umich.edu root.workload = Splash2.FMM() 362847Sksewell@umich.eduelif env['BENCHMARK'] == 'OceanContig': 372847Sksewell@umich.edu root.workload = Splash2.Ocean_contig() 382847Sksewell@umich.eduelif env['BENCHMARK'] == 'OceanNoncontig': 392847Sksewell@umich.edu root.workload = Splash2.Ocean_noncontig() 402847Sksewell@umich.eduelif env['BENCHMARK'] == 'Raytrace': 415596Sgblack@eecs.umich.edu root.workload = Splash2.Raytrace() 422847Sksewell@umich.eduelif env['BENCHMARK'] == 'WaterNSquared': 432847Sksewell@umich.edu root.workload = Splash2.Water_nsquared() 442847Sksewell@umich.eduelif env['BENCHMARK'] == 'WaterSpatial': 452847Sksewell@umich.edu root.workload = Splash2.Water_spatial() 462847Sksewell@umich.eduelse: 475596Sgblack@eecs.umich.edu panic("The BENCHMARK environment variable was set to something" \ 486658Snate@binkert.org +" improper.\nUse Cholesky, FFT, LUContig, LUNoncontig, Radix" \ 498229Snate@binkert.org +", Barnes, FMM, OceanContig,\nOceanNoncontig, Raytrace," \ 508229Snate@binkert.org +" WaterNSquared, or WaterSpatial\n") 515596Sgblack@eecs.umich.edu