Keep around which input set was used for a benchmark, and make vortex work with SPARC.
--HG-- extra : convert_revision : c891435a31e81fb8294484aedf340c0c96c8afa2
This commit is contained in:
parent
4e8d2d1593
commit
4b4b46ea90
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2006 The Regents of The University of Michigan
|
# Copyright (c) 2006-2007 The Regents of The University of Michigan
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -104,6 +104,8 @@ class Benchmark(object):
|
||||||
# dirs for input & output files for this input set
|
# dirs for input & output files for this input set
|
||||||
inputs_dir = joinpath(data_dir, input_set, 'input')
|
inputs_dir = joinpath(data_dir, input_set, 'input')
|
||||||
outputs_dir = joinpath(data_dir, input_set, 'output')
|
outputs_dir = joinpath(data_dir, input_set, 'output')
|
||||||
|
# keep around which input set was specified
|
||||||
|
self.input_set = input_set
|
||||||
|
|
||||||
if not isdir(inputs_dir):
|
if not isdir(inputs_dir):
|
||||||
raise AttributeError, '%s not found' % inputs_dir
|
raise AttributeError, '%s not found' % inputs_dir
|
||||||
|
@ -619,6 +621,8 @@ class vortex(Benchmark):
|
||||||
def __init__(self, isa, os, input_set):
|
def __init__(self, isa, os, input_set):
|
||||||
if isa == 'alpha':
|
if isa == 'alpha':
|
||||||
self.endian = 'lendian'
|
self.endian = 'lendian'
|
||||||
|
elif (isa == 'sparc' or isa == 'sparc32'):
|
||||||
|
self.endian = 'bendian'
|
||||||
else:
|
else:
|
||||||
raise AttributeError, "unknown ISA %s" % isa
|
raise AttributeError, "unknown ISA %s" % isa
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue