Skip to content

Commit

Permalink
no gdl OK
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Sep 27, 2018
1 parent afb8c59 commit 1a9bb3d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Pisum.py
Expand Up @@ -67,10 +67,13 @@ def benchmark_pisum(N, Nrun, paths: Dict[str, Path] = None) -> Dict[str, float]:
if t is not None:
times['julia \n'+t[1]] = t[0]

vers = subprocess.check_output(['gdl', '--version'], universal_newlines=True).split()[-2]
t = pb.run(['gdl', '-q', '-e', 'pisum', '-arg', str(N), '--fakerelease', vers], bdir)
if t is not None:
times['gdl \n'+t[1]] = t[0]
try:
vers = subprocess.check_output(['gdl', '--version'], universal_newlines=True).split()[-2]
t = pb.run(['gdl', '-q', '-e', 'pisum', '-arg', str(N), '--fakerelease', vers], bdir)
if t is not None:
times['gdl \n'+t[1]] = t[0]
except FileNotFoundError:
pass

t = pb.run(['idl', '-quiet', '-e', 'pisum', '-arg', str(N)], bdir)
if t is not None:
Expand Down

0 comments on commit 1a9bb3d

Please sign in to comment.