Changes between Version 11 and Version 12 of misc
- Timestamp:
- 02/04/09 15:38:25 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
misc
v11 v12 1 1 == Miscellaneous Topics and Porting Notes == 2 2 3 === Building and Installing !NumPy 1.2.1 on the BG/P (Surveyor) ===3 === Building and Installing !NumPy 1.2.1 on the BG/P (Surveyor): Using GOTO BLAS and Reference LAPACK === 4 4 5 5 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. … … 11 11 {{{ 12 12 [DEFAULT] 13 library_dirs = /soft/apps/ESSL-4.4/lib14 include_dirs = /soft/apps/ESSL-4.4/include15 libraries = mass, x1, xlopt, xlf90_r, xlfmath, xlsmp16 13 search_static_first = true 14 library_dirs = /soft/apps/LAPACK,/soft/apps/LIBGOTO 15 libraries = lapack_bgp, goto 17 16 }}} 18 17 … … 21 20 {{{ 22 21 ldpath=/bgsys/drivers/ppcfloor/gnu-linux/lib 23 ldflags="-Wl,--allow-multiple-definition -L/opt/ibmcmp/xlmass/bg/4.4/bglib" 24 root=$HOME/soft/numpy-1.2.1-essl 22 root=$HOME/soft/numpy-1.2.1 25 23 p=/bgsys/drivers/ppcfloor/gnu-linux/bin/python 26 c='" /bgsys/drivers/ppcfloor/gnu-linux/bin/powerpc-bgp-linux-gcc -DNO_APPEND_FORTRAN -L/opt/ibmcmp/xlmass/bg/4.4/bglib"'24 c='"mpicc"' 27 25 }}} 28 26 … … 30 28 31 29 {{{ 32 MATHLIB="mass" LDFLAGS="$ldflags"LD_LIBRARY_PATH="$ldpath" CC="$c" $p setup.py install --root="$root"30 LD_LIBRARY_PATH="$ldpath" CC="$c" $p setup.py install --root="$root" 33 31 }}} 34 32 … … 36 34 37 35 {{{ 38 PYTHONPATH+=$HOME/soft/numpy-1.2.1 -essl/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages36 PYTHONPATH+=$HOME/soft/numpy-1.2.1/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages 39 37 }}} 40 38 … … 45 43 }}} 46 44 47 48 45 * To run a test script, make sure you are '''not''' in the numpy-1.2.1 source directory, then do: 49 46 50 47 {{{ 51 48 qsub -n 1 -t 5 -A <projectname>\ 52 --env PYTHONPATH=$PYTHONPATH:$HOME/soft/numpy-1.2.1 -essl/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages/numpy\49 --env PYTHONPATH=$PYTHONPATH:$HOME/soft/numpy-1.2.1/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages/numpy\ 53 50 /bgsys/drivers/ppcfloor/gnu-linux/bin/python test.py 54 51 }}} 52 53 [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.