jcmwave_set_num_threads.mΒΆ

Usage: jcmwave_set_num_threads(num_of_threads|cpu_affinity_list)

Purpose:
  Sets number of threads used by JCMsolve for parallelization on SMP
  machines. It is also possible to bind the threads to certain CPUs.

Input:
  num_of_threads: number of parallel threads to be used by JCMsuite
    , or,
  cpu_affinity: a string containing the CPU to be used.
    The string is expected in the format for the processor list (proclist)
    as inthe environmental variable
      GOMP_CPU_AFFINITY (Linux), or KMP_AFFINITY (google this)
      The number of threads is automatically adapted to the number of addressed
      CPUs.

  If empty the default configuration is used.

Warning:
  A value larger than the number of idle CPUs may cause a performance loss.