From 5b4811b8c0c657ed7b7b98a0800497e1f43a27fa Mon Sep 17 00:00:00 2001 From: Yifan Zhao <yifanz16@illinois.edu> Date: Sun, 4 Apr 2021 00:08:12 -0500 Subject: [PATCH] Fixed syncronization problem with tuner --- .../projects/torch2hpvm/torch2hpvm/template_hpvm_inspect.cpp.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hpvm/projects/torch2hpvm/torch2hpvm/template_hpvm_inspect.cpp.in b/hpvm/projects/torch2hpvm/torch2hpvm/template_hpvm_inspect.cpp.in index 8074704ece..3d6ddd7c75 100644 --- a/hpvm/projects/torch2hpvm/torch2hpvm/template_hpvm_inspect.cpp.in +++ b/hpvm/projects/torch2hpvm/torch2hpvm/template_hpvm_inspect.cpp.in @@ -158,8 +158,8 @@ int main(){ fifo_write_batch(fp, result); freeBatchMemory(); } - fclose(fp); write_accuracy(total_accuracy / input_size); + fclose(fp); __hpvm__cleanup(); } -- GitLab