Skip to content

Commit 44f9f02

Browse files
committed
Update cpu_work_per_thread calculation to better match cpu-benchmark
Signed-off-by: Steven Hahn <hahnse@ornl.gov>
1 parent 5e18ff5 commit 44f9f02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/wfbench

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class CPUBenchmark:
186186
return [None, None]
187187

188188
total_mem = f"{self.total_mem}B" if self.total_mem else f"{100.0 / os.cpu_count()}%"
189-
cpu_work_per_thread = int(1000000 * self.work / (16384 * self.cpu_threads)) if self.cpu_threads != 0 else int32_max ** 2
189+
cpu_work_per_thread = int(1000000 * self.work / (self.cpu_threads)) if self.cpu_threads != 0 else int32_max ** 2
190190
cpu_samples = min(cpu_work_per_thread, int32_max)
191191
cpu_ops = (cpu_work_per_thread + int32_max - 1) // int32_max
192192
if cpu_ops > int32_max:

0 commit comments

Comments
 (0)