[Numpy-discussion] building NumPy with Intel CC & MKL
david at ar.media.kyoto-u.ac.jp
Wed Jan 24 02:28:23 EST 2007
> Robert Kern <robert.kern at gmail.com> [2007-01-23 22:18]:
>> You need to install the development package for Python. Usually it's named
>> something like python2.5-devel.
> Thank you. Did that, and NumPy compiled with a Brazillion warnings, but
> no errors.
> Then I did:
> export LD_RUN_PATH=/opt/lib:/opt/intel/cc/9.1.042/lib:/opt/intel/mkl/8.1/lib/32
> (because I used the Intel defaults, and those are the correct paths)
> But since the SUSE NumPy rpm is also installed, how do I determine
> which version is loaded when the command:
> from numpy import *
> is issued in python? Subjectively, it appears the new version is not
> being used. I expect a significant speed difference using the Intel
> compiler and MKL on a Core 2 Duo.
> Why is this so difficult?
It is somewhat difficult to do something somewhat complicated :) In your
case, one solution to set the dir where numpy is installed is to use the
env variable PYTHONPATH.
For example, I don't have root privileges on my workstation, and I
installed everything in $HOME/local: python setup.py install
--prefix=$HOME/local. Then, numpy is installed in
$home/local/lib/python2.4/site-packages, and using this dir as a value
for PYTHONPATH works (take care at the python version, replace python2.4
by the version you use)
To check which numpy you use, you can simply do a import numpy; print
numpy, which should print the full path,
More information about the NumPy-Discussion