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
how to specify cpu cores to speed up trainning #81
Comments
Have you found the way to train on multi-CPU cores? |
@striversist sadly no |
You should be able to enable multicore operations for Eigen. See the EIgen3 documentation. |
@tmbdev there is two option to enable multithreading. but where and which class should i edit
|
Here you set an environment variable when running
These two are functions, so you should use them within your code. All these options will do the same thing. However, none of them will have any effect without enabling openmp support as part of compiling. |
So it seems that even if you'll enable openmp, there will be no effect. |
Actually, many of the computations are matrix-matrix products. However, I believe that for normal parameter settings, there isn't much of a speedup; for large models it may help. If you want to try it, you can simply add the flags back to the compilation. |
i am running a training over chinese character for 5 months ,iteration times is 700000 |
Add option 'openmp' to SConstruct, #81
if i want to run the following tests
lets say i have 32 cores,how to specify cpu cores to speed up trainning
The text was updated successfully, but these errors were encountered: