Version 1 (modified by norris, 14 years ago) (diff) |
---|
Building and Installing NumPy 1.2.1 on the BG/P (Surveyor): Using GOTO BLAS and Reference LAPACK
These instructions were derived from the wonderful information at https://wiki.fysik.dtu.dk/gpaw/install/platforms_and_architectures.html. The below instructions assume bash.
In the numpy-1.2.1 source directory, do the following:
- Copy site.cfg.example to site.cfg then add:
[DEFAULT] search_static_first = true library_dirs = /soft/apps/LAPACK,/soft/apps/LIBGOTO libraries = lapack_bgp, goto
- Set environment variables:
ldpath=/bgsys/drivers/ppcfloor/gnu-linux/lib root=$HOME/soft/numpy-1.2.1 p=/bgsys/drivers/ppcfloor/gnu-linux/bin/python c='"mpicc"'
- Now build and install numpy:
LD_LIBRARY_PATH="$ldpath" CC="$c" $p setup.py install --root="$root"
- Update your environment settings; in your $HOME/.softenvrc, add:
PYTHONPATH+=$HOME/soft/numpy-1.2.1/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages
- Then run
resoft
- To run a test script, make sure you are not in the numpy-1.2.1 source directory, then do:
qsub -n 1 -t 10 -A <projectname>\ --env PYTHONPATH=$PYTHONPATH:$HOME/soft/numpy-1.2.1/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages/numpy\ /bgsys/drivers/ppcfloor/gnu-linux/bin/python test.py
Here are the equivalent instructions on building it using ESSL, which at present do not quite work since there is at least one required LAPACK routine that is not implemented in the ESSL.