se.py (11839:dd6df2e47c14) | se.py (11851:824055fe6b30) |
---|---|
1# Copyright (c) 2012-2013 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 77 unchanged lines hidden (view full) --- 86 outputs = options.output.split(';') 87 if options.errout != "": 88 errouts = options.errout.split(';') 89 if options.options != "": 90 pargs = options.options.split(';') 91 92 idx = 0 93 for wrkld in workloads: | 1# Copyright (c) 2012-2013 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 77 unchanged lines hidden (view full) --- 86 outputs = options.output.split(';') 87 if options.errout != "": 88 errouts = options.errout.split(';') 89 if options.options != "": 90 pargs = options.options.split(';') 91 92 idx = 0 93 for wrkld in workloads: |
94 process = LiveProcess() | 94 process = Process() |
95 process.executable = wrkld 96 process.cwd = os.getcwd() 97 98 if options.env: 99 with open(options.env, 'r') as f: 100 process.env = [line.rstrip() for line in f] 101 102 if len(pargs) > idx: --- 46 unchanged lines hidden (view full) --- 149 exec("workload = %s('alpha', 'tru64', '%s')" % ( 150 app, options.spec_input)) 151 elif buildEnv['TARGET_ISA'] == 'arm': 152 exec("workload = %s('arm_%s', 'linux', '%s')" % ( 153 app, options.arm_iset, options.spec_input)) 154 else: 155 exec("workload = %s(buildEnv['TARGET_ISA', 'linux', '%s')" % ( 156 app, options.spec_input)) | 95 process.executable = wrkld 96 process.cwd = os.getcwd() 97 98 if options.env: 99 with open(options.env, 'r') as f: 100 process.env = [line.rstrip() for line in f] 101 102 if len(pargs) > idx: --- 46 unchanged lines hidden (view full) --- 149 exec("workload = %s('alpha', 'tru64', '%s')" % ( 150 app, options.spec_input)) 151 elif buildEnv['TARGET_ISA'] == 'arm': 152 exec("workload = %s('arm_%s', 'linux', '%s')" % ( 153 app, options.arm_iset, options.spec_input)) 154 else: 155 exec("workload = %s(buildEnv['TARGET_ISA', 'linux', '%s')" % ( 156 app, options.spec_input)) |
157 multiprocesses.append(workload.makeLiveProcess()) | 157 multiprocesses.append(workload.makeProcess()) |
158 except: 159 print >>sys.stderr, "Unable to find workload for %s: %s" % ( 160 buildEnv['TARGET_ISA'], app) 161 sys.exit(1) 162elif options.cmd: 163 multiprocesses, numThreads = get_processes(options) 164else: 165 print >> sys.stderr, "No workload specified. Exiting!\n" --- 122 unchanged lines hidden --- | 158 except: 159 print >>sys.stderr, "Unable to find workload for %s: %s" % ( 160 buildEnv['TARGET_ISA'], app) 161 sys.exit(1) 162elif options.cmd: 163 multiprocesses, numThreads = get_processes(options) 164else: 165 print >> sys.stderr, "No workload specified. Exiting!\n" --- 122 unchanged lines hidden --- |