Monday, 15 October 2012

Numpy, Scipy and Theano on Eddie

Numpy

 
site.cfg 
 
[mkl]
library_dirs = /local/scratch/ls418/intel/composerxe-2011.0.084/mkl/lib/intel64
include_dirs = /local/scratch/ls418/intel/composerxe-2011.0.084/mkl/include/
mkl_libs = mkl_def, mkl_intel_lp64, mkl_intel_thread, mkl_core, mkl_mc
lapack_libs = mkl_lapack95_lp64
 
 
 
numpy/distutils/intelccompiler.py
 
cc_exe = 'icc -fPIC -O3 -openmp' 
 
python setup.py config --compiler=intel build_clib --compiler=intel build_ext --compiler=intel install --home=$INSTALL_DIR
 

Scipy


numpy/distutils/fcompiler/intel.py
 
pic_flags = ['-kPIC']
 
numpy/distutils/fcompiler/__init__.py (line 432 or so)

return '12.0'
 
Use the same site.cfg as for numpy and install
 
python setup.py config --compiler=intel --fcompiler=intel build_clib --compiler=intel --fcompiler=intel build_ext --compiler=intel --fcompiler=intel install --home=$INSTALL_DIR 
 
 

Theano


pip install Theano
 
 

Wednesday, 23 May 2012

Configuring HTK on Ubuntu 11.10 AMD64

sudo apt-get install build-essential libc6-i386 libc6-dev-i386 xorg-dev libx11-xcb-dev ia32-libs

./configure --disable-hslab CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

make all

sudo make install