Version 12 (modified by norris, 14 years ago) (diff)


Miscellaneous Topics and Porting Notes

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 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:
search_static_first = true
library_dirs = /soft/apps/LAPACK,/soft/apps/LIBGOTO
libraries = lapack_bgp, goto
  • Set environment variables:

  • Now build and install numpy:
LD_LIBRARY_PATH="$ldpath" CC="$c" $p install --root="$root"
  • Update your environment settings; in your $HOME/.softenvrc, add:
  • Then run
  • To run a test script, make sure you are not in the numpy-1.2.1 source directory, then do:
qsub -n 1 -t 5 -A <projectname>\ 
  --env PYTHONPATH=$PYTHONPATH:$HOME/soft/numpy-1.2.1/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages/numpy\ 

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.