I am struggling to get theano to run on multiple cores. When I ran 
check_blas.py using: 


THEANO_FLAGS='floatX=float32,device=cpu,nvcc.flags=-D_FORCE_INLINES' 
> OMP_NUM_THREADS=8 python checkblas.py
>


It still only ran using 1 core, the output is:

Some Theano flags:
>     blas.ldflags= -lblas
>     compiledir= 
> /home/scottyiu/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.12-64
>     floatX= float32
>     device= cpu
> Some OS information:
>     sys.platform= linux2
>     sys.version= 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jul  2 2016, 
> 17:42:40) 
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
>     sys.prefix= /home/scottyiu/anaconda2
> Some environment variables:
>     MKL_NUM_THREADS= None
>     OMP_NUM_THREADS= 4
>     GOTO_NUM_THREADS= None
>
> Numpy config: (used when the Theano flag "blas.ldflags" is empty)
> lapack_opt_info:
>     libraries = ['openblas']
>     library_dirs = ['/usr/local/lib']
>     define_macros = [('HAVE_CBLAS', None)]
>     language = c
> blas_opt_info:
>     libraries = ['openblas']
>     library_dirs = ['/usr/local/lib']
>     define_macros = [('HAVE_CBLAS', None)]
>     language = c
> openblas_info:
>     libraries = ['openblas']
>     library_dirs = ['/usr/local/lib']
>     define_macros = [('HAVE_CBLAS', None)]
>     language = c
> openblas_lapack_info:
>     libraries = ['openblas']
>     library_dirs = ['/usr/local/lib']
>     define_macros = [('HAVE_CBLAS', None)]
>     language = c
> blas_mkl_info:
>   NOT AVAILABLE
> Numpy dot module: numpy.core.multiarray
> Numpy location: 
> /home/scottyiu/anaconda2/lib/python2.7/site-packages/numpy/__init__.pyc
> Numpy version: 1.10.4
>

However, when I run numpy normally, it can use up to eight threads:

import numpy as np
>
size = 10000
>
a = np.random.random_sample((size, size))
>
b = np.random.random_sample((size, size))
>
n = np.dot(a,b)
>

Could someone please give me some advice? Thank you. 

-- 

--- 
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.

Reply via email to