<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 2018_0018: theano compilation error in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/2018-0018-theano-compilation-error/m-p/1155992#M1158</link>
    <description>&lt;P&gt;Hello folks,&lt;/P&gt;

&lt;P&gt;Trying the theano code:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ 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: &lt;A href="https://software.intel.com/en-us/python-distribution" target="_blank"&gt;https://software.intel.com/en-us/python-distribution&lt;/A&gt;
&amp;gt;&amp;gt;&amp;gt; from theano import function, config, shared, sandbox
icpc version 13.0.0 (gcc version 4.7.0 compatibility)
&amp;gt;&amp;gt;&amp;gt; import theano.tensor as T
&amp;gt;&amp;gt;&amp;gt; import numpy
&amp;gt;&amp;gt;&amp;gt; import time
&amp;gt;&amp;gt;&amp;gt; vlen = 10 * 30 * 768  # 10 x #cores x # threads per core
&amp;gt;&amp;gt;&amp;gt; iters = 1000
&amp;gt;&amp;gt;&amp;gt; rng = numpy.random.RandomState(22)  
&amp;gt;&amp;gt;&amp;gt; x = shared(numpy.asarray(rng.rand(vlen), config.floatX))  
&amp;gt;&amp;gt;&amp;gt; f = function([], T.exp(x))
&amp;gt;&amp;gt;&amp;gt; ... ... ... 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 &amp;lt;bits/c++config.h&amp;gt;.                              ^. . 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}(&amp;lt;TensorType(float32, vector)&amp;gt;)]')
&lt;/PRE&gt;

&lt;P&gt;Is there any way to overcome this "catastrophic error"?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Sergio&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2017 18:29:45 GMT</pubDate>
    <dc:creator>sergio_r_</dc:creator>
    <dc:date>2017-11-13T18:29:45Z</dc:date>
    <item>
      <title>2018_0018: theano compilation error</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/2018-0018-theano-compilation-error/m-p/1155992#M1158</link>
      <description>&lt;P&gt;Hello folks,&lt;/P&gt;

&lt;P&gt;Trying the theano code:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ 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: &lt;A href="https://software.intel.com/en-us/python-distribution" target="_blank"&gt;https://software.intel.com/en-us/python-distribution&lt;/A&gt;
&amp;gt;&amp;gt;&amp;gt; from theano import function, config, shared, sandbox
icpc version 13.0.0 (gcc version 4.7.0 compatibility)
&amp;gt;&amp;gt;&amp;gt; import theano.tensor as T
&amp;gt;&amp;gt;&amp;gt; import numpy
&amp;gt;&amp;gt;&amp;gt; import time
&amp;gt;&amp;gt;&amp;gt; vlen = 10 * 30 * 768  # 10 x #cores x # threads per core
&amp;gt;&amp;gt;&amp;gt; iters = 1000
&amp;gt;&amp;gt;&amp;gt; rng = numpy.random.RandomState(22)  
&amp;gt;&amp;gt;&amp;gt; x = shared(numpy.asarray(rng.rand(vlen), config.floatX))  
&amp;gt;&amp;gt;&amp;gt; f = function([], T.exp(x))
&amp;gt;&amp;gt;&amp;gt; ... ... ... 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 &amp;lt;bits/c++config.h&amp;gt;.                              ^. . 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}(&amp;lt;TensorType(float32, vector)&amp;gt;)]')
&lt;/PRE&gt;

&lt;P&gt;Is there any way to overcome this "catastrophic error"?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Sergio&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 18:29:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/2018-0018-theano-compilation-error/m-p/1155992#M1158</guid>
      <dc:creator>sergio_r_</dc:creator>
      <dc:date>2017-11-13T18:29:45Z</dc:date>
    </item>
    <item>
      <title>Hi Sergio,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/2018-0018-theano-compilation-error/m-p/1155993#M1159</link>
      <description>&lt;P&gt;Hi Sergio,&lt;/P&gt;

&lt;P&gt;Intel Theano defaults to using the Intel compiler if it finds it on your system.&amp;nbsp; In your case, the installed compiler is version 13.0, which only has gcc 4.7 compatibility. You have three options:&lt;/P&gt;

&lt;P&gt;1. Use Intel compiler &amp;gt;= 16.0&lt;/P&gt;

&lt;P&gt;2. Remove icpc from your path before importing theano&lt;/P&gt;

&lt;P&gt;3. At runtime, you can change the config to use gcc with the following code&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;from theano import config
config.cxx = 'g++'
config.gcc.cxxflags = '-fopenmp -O3 -opt-prefetch=2 -funroll-loops'&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 18:55:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/2018-0018-theano-compilation-error/m-p/1155993#M1159</guid>
      <dc:creator>Christophe_H_Intel2</dc:creator>
      <dc:date>2017-11-13T18:55:19Z</dc:date>
    </item>
    <item>
      <title>Thanks Christopher,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/2018-0018-theano-compilation-error/m-p/1155994#M1160</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://software.intel.com/en-us/user/1183587"&gt;Christopher,&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Options 2 and 3 works.&lt;/P&gt;

&lt;P&gt;Salut,&lt;/P&gt;

&lt;P&gt;Sergio&lt;BR /&gt;
	Enhance your #MachineLearning and #BigData skills via #Python #SciPy&lt;BR /&gt;
	1) &lt;A href="https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy-video" target="_blank"&gt;https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy-video&lt;/A&gt;&lt;BR /&gt;
	2) &lt;A href="https://www.packtpub.com/big-data-and-business-intelligence/learning-scipy-numerical-and-scientific-computing-second-edition" target="_blank"&gt;https://www.packtpub.com/big-data-and-business-intelligence/learning-scipy-numerical-and-scientific-computing-second-edition&lt;/A&gt;&lt;BR /&gt;
	3) &lt;A href="https://www.researchgate.net/publication/301293668" target="_blank"&gt;https://www.researchgate.net/publication/301293668&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 19:31:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/2018-0018-theano-compilation-error/m-p/1155994#M1160</guid>
      <dc:creator>sergio_r_</dc:creator>
      <dc:date>2017-11-14T19:31:13Z</dc:date>
    </item>
  </channel>
</rss>

