aboutsummaryrefslogtreecommitdiffstats
path: root/parse/ft.py
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-02-07 11:21:23 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-02-07 11:21:23 -0500
commit39020cf5ae3030bc15035925a0c72eb44eea67b7 (patch)
treefb82b339c1e5c14334f8d9839f8d836b120fbb08 /parse/ft.py
parentd524da9bd072ad1be4ac0d633e3e783094ddc2d7 (diff)
Added gen_exps.py script.
Diffstat (limited to 'parse/ft.py')
-rw-r--r--parse/ft.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/ft.py b/parse/ft.py
index a6596b7..5293b00 100644
--- a/parse/ft.py
+++ b/parse/ft.py
@@ -47,12 +47,12 @@ def parse_overhead(result, overhead_bin, overhead, cycles, out_dir, err_file):
47 47
48def sort_ft(ft_file, err_file, out_dir): 48def sort_ft(ft_file, err_file, out_dir):
49 '''Create and return file with sorted overheads from @ft_file.''' 49 '''Create and return file with sorted overheads from @ft_file.'''
50 out_fname = "{}/{}".format(out_dir, FT_SORTED_NAME) 50 out_fname = "{}/{}".format("%s/%s" % (os.getcwd(), out_dir), FT_SORTED_NAME)
51 51
52 # Sort happens in-place 52 # Sort happens in-place
53 sh.copyfile(ft_file, out_fname) 53 sh.copyfile(ft_file, out_fname)
54 cmd = [conf.BINS['ftsort'], out_fname] 54 cmd = [conf.BINS['ftsort'], out_fname]
55 ret = subprocess.call(cmd, cwd=out_dir, stderr=err_file, stdout=err_file) 55 ret = subprocess.call(cmd, cwd="%s/%s" % (os.getcwd(), out_dir), stderr=err_file, stdout=err_file)
56 56
57 if ret: 57 if ret:
58 raise Exception("Sort failed with command: %s" % " ".join(cmd)) 58 raise Exception("Sort failed with command: %s" % " ".join(cmd))