Skip to content

global parameter to control number of threads

Alexander Glazov requested to merge global_threads into master
  • Introduce global parameter NCPUmax to specify maximal total number of CPUs available for fork(). Introduce interfaces to get this value as xf_cpu(int NCPU). Perform fork and update NCPUmax for the child processes by xf_fork(int NCPU).
  • All calls to fork() are replaced by xf_fork(NCPU); ncpu/nthreads is updated to use xf_ncpu()

Tests are not fully completed (seem to work fine for profiler + RT combination)

@olzenaie @amoroso please have a look

Merge request reports