Changes between Initial Version and Version 1 of ccanumpy


Ignore:
Timestamp:
02/23/09 18:08:17 (14 years ago)
Author:
norris
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ccanumpy

    v1 v1  
     1== Building and Installing !NumPy 1.2.1 on the BG/P (Surveyor): Using GOTO BLAS and Reference LAPACK == 
     2 
     3These instructions were derived from the wonderful information at https://wiki.fysik.dtu.dk/gpaw/install/platforms_and_architectures.html. The below instructions assume bash. 
     4 
     5''' In the numpy-1.2.1 source directory, do the following: ''' [[BR]] 
     6 
     7 * Copy site.cfg.example to site.cfg then add:  
     8 
     9{{{ 
     10[DEFAULT] 
     11search_static_first = true 
     12library_dirs = /soft/apps/LAPACK,/soft/apps/LIBGOTO 
     13libraries = lapack_bgp, goto 
     14}}} 
     15 
     16 * Set environment variables: 
     17 
     18{{{ 
     19ldpath=/bgsys/drivers/ppcfloor/gnu-linux/lib 
     20root=$HOME/soft/numpy-1.2.1 
     21p=/bgsys/drivers/ppcfloor/gnu-linux/bin/python 
     22c='"mpicc"' 
     23}}} 
     24   
     25 * Now build and install numpy: 
     26 
     27{{{ 
     28LD_LIBRARY_PATH="$ldpath" CC="$c" $p setup.py install --root="$root" 
     29}}} 
     30 
     31 * Update your environment settings; in your $HOME/.softenvrc, add: 
     32 
     33{{{ 
     34PYTHONPATH+=$HOME/soft/numpy-1.2.1/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages 
     35}}} 
     36 
     37 * Then run 
     38 
     39 {{{ 
     40 resoft 
     41 }}} 
     42 
     43 * To run a test script, make sure you are '''not''' in the numpy-1.2.1 source directory, then do: 
     44 
     45{{{ 
     46qsub -n 1 -t 10 -A <projectname>\  
     47  --env PYTHONPATH=$PYTHONPATH:$HOME/soft/numpy-1.2.1/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages/numpy\  
     48  /bgsys/drivers/ppcfloor/gnu-linux/bin/python test.py 
     49}}} 
     50 
     51[wiki:numpy-essl 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.