Skip to content

Commit

Permalink
Merge branch 'master' into gather_scatter
Browse files Browse the repository at this point in the history
  • Loading branch information
safl committed Jun 4, 2015
2 parents 93558a1 + 7568cc9 commit caa3ed5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/python/numpytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ def init(self):
This function is used as a means to control til --dtype argument
passed to the benchmark script and provide a uuid for benchmark output.
"""
#Lets make sure that benchpress is installed
try:
subprocess.call(['bp-info', '--benchmarks'])
except OSError:
print("ERROR: benchpress not install -- skipping test.")
raise StopIteration()

self.uuid = str(uuid.uuid4())
for dtype in self.dtypes:
yield ({0:bh.empty(self.size, bohrium=False, dtype=dtype)},
Expand Down Expand Up @@ -211,7 +218,6 @@ def run(self, pseudo_input):
stderr = subprocess.PIPE,
).communicate()


sys_exec = [sys.executable, "-m", "bohrium"] if target else [sys.executable]
benchmark_path = os.sep.join([benchmarks_dir.strip(), self.script, "python_numpy", self.script+ ".py"])

Expand Down Expand Up @@ -377,5 +383,5 @@ def run(self, pseudo_input):
print(_C.OKGREEN + str(res1) + _C.ENDC)
print(_C.FAIL + str(res2) + _C.ENDC)
sys.exit (1)

print("*"*24, "Finish", "*"*24)

0 comments on commit caa3ed5

Please sign in to comment.