Skip to content

Commit

Permalink
Fixed minour bugs in script and counting copy out in decompression
Browse files Browse the repository at this point in the history
  • Loading branch information
andradazoltan committed Jul 31, 2020
1 parent 0216a81 commit 9a00871
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions snappy/scripts/asplos20/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def run_breakdown_test(testfile, min_dpu, max_dpu, incr, tasklets):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Run a specific test')
requiredArgs = parser.add_argument_group('required arguments')
requiredArgs.add_argument('-t', '--test', required=True, help='Which test to run: 1 - vary #DPUs, 2 - vary #tasklets, 3 - breakdown of time spent for one testfile')
requiredArgs.add_argument('-t', '--test', required=True, help='Which test to run: 1 - vary #DPUs, 2 - vary #tasklets, 3 - breakdown of time spent for one testfile')
requiredArgs.add_argument('-f', '--files', nargs='+', required=True, help='List of test files to run, without file endings')
requiredArgs.add_argument('-r', '--range', nargs='+', required=True, help='Range of DPUs or tasklets to test: [MIN] [MAX]')
requiredArgs.add_argument('-i', '--incr', required=True, help='Increment to test within the range')
Expand All @@ -175,12 +175,12 @@ def run_breakdown_test(testfile, min_dpu, max_dpu, incr, tasklets):
os.makedirs("results/decompression", exist_ok=True)

# Set up the test conditions
try:
if int(arg.t) == 1:
try:
if int(args.test) == 1:
run_dpu_test(files, range_min, range_max, incr)
elif int(arg.t) == 2:
elif int(args.test) == 2:
run_tasklet_test(files, range_min, range_max, incr, args.d)
elif int(arg.t) == 3:
elif int(args.test) == 3:
run_breakdown_test(files[0], range_min, range_max, incr, 12)
except:
parser.print_help()
parser.print_help()
2 changes: 1 addition & 1 deletion snappy/snappy_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,10 @@ snappy_status snappy_decompress_dpu(struct host_buffer_context *input, struct ho

// Deallocate the DPUs
runtime->copy_out = 0;
gettimeofday(&start, NULL);
dpu_idx = 0;
DPU_RANK_FOREACH(dpus, dpu_rank) {
uint32_t starting_dpu_idx = dpu_idx;
gettimeofday(&start, NULL);
#ifdef BULK_XFER
uint32_t largest_output_length = 0;
#endif
Expand Down

0 comments on commit 9a00871

Please sign in to comment.