We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 827c189 commit e41861cCopy full SHA for e41861c
1 file changed
bin/wfbench
@@ -181,11 +181,11 @@ def cpu_mem_benchmark(cpu_queue: multiprocessing.Queue,
181
:rtype: List
182
"""
183
total_mem = f"{total_mem}B" if total_mem else f"{100.0 / os.cpu_count()}%"
184
- cpu_work_per_thread = int(1000000 * cpu_work / (16384 * cpu_threads))
+ cpu_work_per_thread = int(1000000 * cpu_work / (16384 * cpu_threads)) if cpu_threads != 0 else int32_max**2
185
cpu_samples = min(cpu_work_per_thread, int32_max)
186
cpu_ops = (cpu_work_per_thread + int32_max - 1) // int32_max
187
if cpu_ops > int32_max:
188
- log_info("Exceeded maximum number of cpu work.")
+ log_info("Exceeded maximum allowed value of cpu work.")
189
cpu_ops = int32_max
190
191
cpu_proc = None
0 commit comments