GRUV icon indicating copy to clipboard operation
GRUV copied to clipboard

Any way of using multiple CPU cores?

Open jmurth1234 opened this issue 8 years ago • 3 comments

Hi,

I'd like to be able to run this on my server, however the model seems to only use one core, and as I don't have a GPU it makes the training extremely slow.

Is there a way of using multiple cores?

jmurth1234 avatar Mar 09 '16 18:03 jmurth1234

Maybe you need to turn it with OpenMP http://deeplearning.net/software/theano/tutorial/multi_cores.html

You can switch your lineal computation lib to OpenBlas It is described here https://habrahabr.ru/post/274331/ (sorry , article is in russian)

vasyarv avatar Apr 02 '16 16:04 vasyarv

Since my Mac laptop has an AMD GPU and I haven't figured out how to OpenCL working (any tips?), just adding "OMP_NUM_THREADS=" got me an instant factor of 2 in speedup without doing any other work.

drscotthawley avatar Jun 01 '16 13:06 drscotthawley

mattpearson made version compatible with newest keras, please look at https://github.com/mattpearson/GRUV I have noticed that in that version, it switched to tensorflow beckend and used all CPU cores.

piteight avatar Nov 16 '16 10:11 piteight