zfit.run.set_n_cpu#

run.set_n_cpu(strict=False)#

Set the number of cpus to be used by zfit. For more control, use set_cpus_explicit.

Parameters:
  • n_cpu (str | int) – Number of cpus, will be the number for inter-op parallelism

  • strict (bool) – If strict, sets intra parallelism to 1

Return type:

None