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

Trains as single threaded and no documentation on how to use multithreading #240

Closed
jbmorgado opened this issue Jun 29, 2023 · 1 comment

Comments

@jbmorgado
Copy link

The documentation is scant about these details, but the Readme talks about training with a 12 thread Ryzen CPU which seems to imply the training process should be multithreaded.

But, when using the examples provided in the documentation, all training is done as single threaded, and, as such, very slow.

Please clarify this in the Documentation and add instruction on how to use multithreading (if it indeed supports it).

@jeremiedb
Copy link
Member

jeremiedb commented Jun 29, 2023

EvoTrees performs training and inference using all threads available to Julia. So there's no special action needed, other than making multiple threads available, which can be achieved in various ways: https://docs.julialang.org/en/v1/manual/multi-threading/.
Notably, either through the JULIA_NUM_THREADS env variable, or using --threads=8 argument in command line argument.

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

No branches or pull requests

2 participants