MCPcopy Index your code
hub / github.com/evalplus/evalplus / default_parallelism

Function default_parallelism

evalplus/perf/profile.py:27–28  ·  view source on GitHub ↗
(divisor=4)

Source from the content-addressed store, hash-verified

25
26
27def default_parallelism(divisor=4):
28 return max(1, max(cpu_count(), get_max_ram_gb() // PERF_RAM_GB_PER_PROC) // divisor)
29
30
31def simple_test_profiler():

Callers 1

scriptFunction · 0.90

Calls 1

get_max_ram_gbFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…