Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALL: allow to change number of threads in kdtree #362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Marcello-Sega
Copy link
Owner

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
Copy link
Owner Author

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant