- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello folks,
Trying the theano code:
$ python Python 3.6.2 |Intel Corporation| (default, Aug 15 2017, 16:14:26) [GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux Type "help", "copyright", "credits" or "license" for more information. Intel(R) Distribution for Python is brought to you by Intel Corporation. Please check out: https://software.intel.com/en-us/python-distribution >>> from theano import function, config, shared, sandbox icpc version 13.0.0 (gcc version 4.7.0 compatibility) >>> import theano.tensor as T >>> import numpy >>> import time >>> vlen = 10 * 30 * 768 # 10 x #cores x # threads per core >>> iters = 1000 >>> rng = numpy.random.RandomState(22) >>> x = shared(numpy.asarray(rng.rand(vlen), config.floatX)) >>> f = function([], T.exp(x)) >>> ... ... ... icpc: command line warning #10006: ignoring unknown option \'-qopt-prefetch=2\'. /usr/include/c++/4.8/iostream(38): catastrophic error: cannot open source file "bits/c++config.h". #include <bits/c++config.h>. ^. . compilation aborted for /home/srojas/.theano/compiledir_Linux-3.13--generic-x86_64-with-debian-jessie-sid-x86_64-3.6.2-64/tmpy7syaejc/mod.cpp (code 4). ', '[Elemwise{exp,no_inplace}(<TensorType(float32, vector)>)]')
Is there any way to overcome this "catastrophic error"?
Thanks,
Sergio
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sergio,
Intel Theano defaults to using the Intel compiler if it finds it on your system. In your case, the installed compiler is version 13.0, which only has gcc 4.7 compatibility. You have three options:
1. Use Intel compiler >= 16.0
2. Remove icpc from your path before importing theano
3. At runtime, you can change the config to use gcc with the following code
from theano import config config.cxx = 'g++' config.gcc.cxxflags = '-fopenmp -O3 -opt-prefetch=2 -funroll-loops'
Thanks,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Christopher,
Options 2 and 3 works.
Salut,
Sergio
Enhance your #MachineLearning and #BigData skills via #Python #SciPy
1) https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy-video
2) https://www.packtpub.com/big-data-and-business-intelligence/learning-scipy-numerical-and-scientific-computing-second-edition
3) https://www.researchgate.net/publication/301293668
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page