From 6e08f4c17abb46abbcb7ea2d4091840d5cab2591 Mon Sep 17 00:00:00 2001
From: Yifan Zhao <yifanz16@illinois.edu>
Date: Fri, 26 Mar 2021 01:54:41 -0500
Subject: [PATCH] Added a bit more slack in accuracy validation (profiler)

---
 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 123a35a781..88f74c9194 100644
--- a/hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py
+++ b/hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py
@@ -121,7 +121,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) > 1e-3:
+        if abs(recorded_base_qos - base_qos) > 0.02:
             raise ValueError(
                 f"Baseline QoS mismatch. Original: {recorded_base_qos}, measured: {base_qos}"
             )
-- 
GitLab