It may simply be that the Theano computation that would use multiple cores are being moved to the GPU, and not using the CPU cores any more.
On Thu, Oct 06, 2016, 蒋楠 wrote: > Hi everyone, I am using theano, but have some problems with using multi > cores and GPU at the same time. > > The platform is Ubuntu 14.04, numpy compiled with MKL for blas. I have > checked that theano supports multi cores, following the instruction at > here: here > <http://deeplearning.net/software/theano/tutorial/multi_cores.html> > > When i run my program, with OMP_NUM_THREADS=8 > THEANO_FLAGS=device=cpu,floatX=float32 python train.py, it uses multiple > cores successfully. However, if I run OMP_NUM_THREADS=8 > THEANO_FLAGS=device=gpu,floatX=float32 python train.py, it only use one > core each time. In my program, I use both theano and numpy heavily, so i > hope to use gpu for deep learning and multiple cores for some numpy > computation. > > Anyone could help me? Any reply would be highly appreciated. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "theano-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- Pascal -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
