Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.
424 Discussions

Intel(R) Python with Intel(R) Optimized Theano

Christophe_H_Intel2
1,094 Views

For instructions on using Intel's optimized Theano* with your Intel(R) Distribution for Python* installation, please see the article here.

Update:  Beginning with 2017 update 2, the Intel Theano module is included in the Intel Python distribution.

Update:  As of 2017 update 3, it is no longer necessary to use a .theanorc file. The optimal defaults are determined at runtime.

0 Kudos
4 Replies
raymond_s_2
Beginner
1,094 Views

The theanorc file recommended in the article requires an intel compiler. If you're using a gcc compiler try this,

nano ~/.theanorc

[cuda]
root = /usr/local/cuda

[global]
device = cpu
floatX = float32
mode = FAST_RUN
openmp = True
openmp_elemwise_minsize = 10

[gcc]
cxxflags = -O3 -ffast-math -ftree-loop-distribution -funroll-loops -ftracer

[blas]
ldflags = -lmkl_rt
0 Kudos
Priyadhars_K_Intel
1,094 Views

Hi,

Do we have Keras on Theano ?

if someone is using Theano on a GPGPU , how to optimize their workload

Regards,

Priya 

 

0 Kudos
RL5
Beginner
1,094 Views

raymond s. wrote:

The theanorc file recommended in the article requires an intel compiler. If you're using a gcc compiler try this,

 

Thank you for the addition. In my case I don't see a difference between using the default cxx flags or using the ones suggested in this post.

0 Kudos
Christophe_H_Intel2
1,094 Views

Hi RL,

Beginning with Intel Python 2017 Update 3, the .theanorc file is no longer required.  The recommended defaults, including environment variables for Xeon Phi, are set at runtime based on the cpu and installed compiler.   Additionally, the steps decribed in the article above for installing Intel Theano are no longer necessary, as the module is bundled with Intel Python.

Thanks,

Chris

0 Kudos
Reply