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

Exploit several CPU #36

Closed
smart-fr opened this issue Feb 7, 2021 · 2 comments
Closed

Exploit several CPU #36

smart-fr opened this issue Feb 7, 2021 · 2 comments

Comments

@smart-fr
Copy link

smart-fr commented Feb 7, 2021

Please note that it is not necessary to have multiple distributed workers to exploit several CPU cores (every worker spawns several threads anyway).

Originally posted by @jonathan-laurent in #18 (comment)

I can see on my platform monitoring that during training, only 1 vCPU out of 8 is used. Apart from setting num_workers parameters in params.jl (which I left at the default value of 128 for all occurrences), is there something to be done in order to effectively use multiple cores?

@jonathan-laurent
Copy link
Owner

Several CPU cores should be used automatically if you start Julia with -t 8 or sets JULIA_NUM_THREADS to 8.

@smart-fr
Copy link
Author

smart-fr commented Feb 7, 2021

Thank you!

@smart-fr smart-fr closed this as completed Feb 7, 2021
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