From e50f157bd33cd1091e570ba55e1b5e948798965d Mon Sep 17 00:00:00 2001
From: Yifan Zhao <yifanz16@illinois.edu>
Date: Fri, 2 Apr 2021 07:31:39 -0500
Subject: [PATCH] Relax accuracy check in profiler for a bit more (0.025)

---
 hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py b/hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py
index 9b9011e6f6..baaf645cb9 100644
--- a/hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py
+++ b/hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py
@@ -151,7 +151,7 @@ class Config:
 
     def update_profile_results(self, speedup: float, qos: float, base_qos: float):
         recorded_base_qos = self.qos + self.qos_loss
-        if abs(recorded_base_qos - base_qos) > 0.02:
+        if abs(recorded_base_qos - base_qos) > 0.025:
             raise ValueError(
                 f"Baseline QoS mismatch. Original: {recorded_base_qos}, measured: {base_qos}"
             )
-- 
GitLab