NOTE: these instructions are obsolete. Please see Building NumPy on a 64-bit Red Hat Cluster with Intel MKL.
In a previous post I described how I built Numpy with Intel compilers and the Math Kernel Library on a 64-bit cluster. Today I upgraded to Numpy-1.2.1 and I made a few improvements to my install process. Please read the previous post, since I will not duplicate some important information, and then read on.
This time, I made use of a site.cfg file. Copy the file site.cfg.example to site.cfg and edit. At the end of the file, uncomment the [mkl] section and set the path to your library. Mine looks like:
[mkl] library_dirs = /opt/intel/mkl/10.0.1.014/lib/em64t/ lapack_libs = mkl_lapack mkl_libs = mkl, guide
Configure the build with the following command. I’m not 100% sure that you need to specify the compilers at this point, but it never hurts to be consistent:
python setup.py config --compiler=intel --fcompiler=intel
After configuration, build the library:
python setup.py build --compiler=intel --fcompiler=intel --verbose > install_output.txt
Finally, install in my home directory since I don’t have admin privileges on this cluster:
python setup.py install --home=~
This seems like a better method than the one I used before. It doesn’t require typing such a long command line. It helps that the site.cfg.example file from numpy-1.2.1 is a little easier to follow.