Function cimba_threads_use

Function Documentation

uint32_t cimba_threads_use(uint32_t n_threads)

Set the maximal number of worker threads to be used by Cimba. Can only be set before or between Cimba runs.

Parameters:
  • n_threads – The number of threads to use. Zero means default number, i.e., equal to the number of CPU cores reported by the operating system. Returns the actual number used, same as cimba_workers_num().

Returns:

Number of worker threads to be used on the next run, >= 1