Commit dfa67aff authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

CommCompModel: comp_alone_model can't be higher than the observed maximum

parent 1320b55d
......@@ -126,7 +126,8 @@ class CommCompModel:
diff = max(0, self.max_together_value - self.max_comp_alone_value)
for i in range(len(self.x_model)):
self.comp_alone_model.append(min(self.comp_mem_req*self.x_model[i], self.total_model[i]))
# The comp alone perf can't be higher than the perfect scaling, the total measured and the max observed comp alone perf:
self.comp_alone_model.append(min(self.comp_mem_req*self.x_model[i], self.total_model[i], self.max_comp_alone_value))
if self.comp_mem_req*self.x_model[i] + self.impacted_network_ratio*self.comm_alone_bw < self.total_model[i]:
# We didn't reach the memory system limit yet, the begining of the plateau.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment