pytim icon indicating copy to clipboard operation
pytim copied to clipboard

ALL: allow to change number of threads in kdtree

Open Marcello-Sega opened this issue 2 years ago • 1 comments

Please make sure that your pull request satisfies the following requirements:

  • in environments with limited resources (e.g. a job in a cluster queue) the default option of kdtree to use all threads can be nefarious:
ERROR; return code from pthread_create() is 11
       Error detail: Resource temporarily unavailable

One can now pass the option workers as in

inter = pytim.GITIM(u,workers=1)

to limit the number of threads. Note that this option has no effect on the multiproc one. This level control is probably too fine and should be revised.

Marcello-Sega avatar Mar 07 '22 12:03 Marcello-Sega

bump

Marcello-Sega avatar Apr 18 '24 09:04 Marcello-Sega