Hi 

Running Ubuntu 16.10, installed anaconda3, theano from conda-forge. Nothing 
works due to the errors below.
I've tried various options for the cxx flag, g++-5 g++-4.9 /usr/bin/g++-4.8 
etc
The theanorc file is recognized as it correctly picks up the gpu when that 
is enabled, but still fails to compile.

Any help please :)

Jonathan

jonathan@melange:~$ python
Python 3.5.2 |Anaconda 4.3.0 (64-bit)| (default, Jul  2 2016, 17:53:06) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import theano
>>> theano.__version__
'0.8.2'
>>> 
jonathan@melange:~$ cat .theanorc
[global]
floatX = float32
# device = gpu

[g++]
cxx = /usr/bin/x86_64-linux-gnu-g++-4.8

[lib]
cnmem = 0.7
jonathan@melange:~$ python `python -c "import os, theano; 
print(os.path.dirname(theano.__file__))"`/misc/check_blas.py

Some Theano flags:
    blas.ldflags= -L/usr/local/lib -lopenblas -lopenblas
    compiledir= /home/jonathan/.theano/compiledir_Linux-4.8--generic-x86_64-
with-debian-stretch-sid-x86_64-3.5.2-64
    floatX= float32
    device= cpu
Some OS information:
    sys.platform= linux
    sys.version= 3.5.2 |Anaconda 4.3.0 (64-bit)| (default, Jul  2 2016, 17:
53:06) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
    sys.prefix= /home/jonathan/Apps/Anaconda3
Some environment variables:
    MKL_NUM_THREADS= None
    OMP_NUM_THREADS= None
    GOTO_NUM_THREADS= None


Numpy config: (used when the Theano flag "blas.ldflags" is empty)
openblas_lapack_info:
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
lapack_opt_info:
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
blas_mkl_info:
  NOT AVAILABLE
blis_info:
  NOT AVAILABLE
openblas_info:
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
blas_opt_info:
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
lapack_mkl_info:
  NOT AVAILABLE
Numpy dot module: numpy.core.multiarray
Numpy location: /home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/
numpy/__init__.py
Numpy version: 1.12.0
ERROR (theano.gof.opt): Optimization failure due to: constant_folding
ERROR (theano.gof.opt): node: DimShuffle{x,x}(TensorConstant{
0.800000011920929})
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/opt.py"
, line 1772, in process_node
    replacements = lopt.transform(node)
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/tensor/opt.py"
, line 5825, in constant_folding
    no_recycling=[])
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/op.py"
, line 970, in make_thunk
    no_recycling)
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/op.py"
, line 879, in make_c_thunk
    output_storage=node_output_storage)
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/cc.py"
, line 1200, in make_thunk
    keep_lock=keep_lock)
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/cc.py"
, line 1143, in __compile__
    keep_lock=keep_lock)
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/cc.py"
, line 1595, in cthunk_factory
    key=key, lnk=self, keep_lock=keep_lock)
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/cmodule.py"
, line 1142, in module_from_key
    module = lnk.compile_cmodule(location)
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/cc.py"
, line 1506, in compile_cmodule
    preargs=preargs)
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/cmodule.py"
, line 2213, in compile_str
    return dlimport(lib_filename)
  File 
"/home/jonathan/Apps/Anaconda3/lib/python3.5/site-packages/theano/gof/cmodule.py"
, line 299, in dlimport
    rval = __import__(module_name, {}, {}, [module_name])
ImportError: /home/jonathan/.theano/compiledir_Linux-4.8--generic-x86_64-
with-debian-stretch-sid-x86_64-3.5.2-64/tmppn2ug2zy/
mdb219947724f79219f7dbd36f0f52c77.so: undefined symbol: _ZdlPvm



-- 

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