Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/wfbench
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class CPUBenchmark:
return [None, None]

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