[fuzzer] The fuzzer detects the number of CPUs

This commit is contained in:
Romain Goyet
2020-11-04 10:53:30 -05:00
committed by LeaNumworks
parent 7030159530
commit cca750a1c4

View File

@@ -1,7 +1,8 @@
#!/usr/bin/env python
import subprocess
import multiprocessing
NUMBER_OF_FUZZERS=8
NUMBER_OF_FUZZERS=multiprocessing.cpu_count()
def afl_command(name):
master_option = "-M" if name.startswith("master") else "-S"