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. |
6 | | |
7 | | ''' In the numpy-1.2.1 source directory, do the following: ''' [[BR]] |
8 | | |
9 | | * Copy site.cfg.example to site.cfg then add: |
10 | | |
11 | | {{{ |
12 | | [DEFAULT] |
13 | | search_static_first = true |
14 | | library_dirs = /soft/apps/LAPACK,/soft/apps/LIBGOTO |
15 | | libraries = lapack_bgp, goto |
16 | | }}} |
17 | | |
18 | | * Set environment variables: |
19 | | |
20 | | {{{ |
21 | | ldpath=/bgsys/drivers/ppcfloor/gnu-linux/lib |
22 | | root=$HOME/soft/numpy-1.2.1 |
23 | | p=/bgsys/drivers/ppcfloor/gnu-linux/bin/python |
24 | | c='"mpicc"' |
25 | | }}} |
26 | | |
27 | | * Now build and install numpy: |
28 | | |
29 | | {{{ |
30 | | LD_LIBRARY_PATH="$ldpath" CC="$c" $p setup.py install --root="$root" |
31 | | }}} |
32 | | |
33 | | * Update your environment settings; in your $HOME/.softenvrc, add: |
34 | | |
35 | | {{{ |
36 | | PYTHONPATH+=$HOME/soft/numpy-1.2.1/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages |
37 | | }}} |
38 | | |
39 | | * Then run |
40 | | |
41 | | {{{ |
42 | | resoft |
43 | | }}} |
44 | | |
45 | | * To run a test script, make sure you are '''not''' in the numpy-1.2.1 source directory, then do: |
46 | | |
47 | | {{{ |
48 | | qsub -n 1 -t 10 -A <projectname>\ |
49 | | --env PYTHONPATH=$PYTHONPATH:$HOME/soft/numpy-1.2.1/bgsys/drivers/ppcfloor/gnu-linux/lib/python2.5/site-packages/numpy\ |
50 | | /bgsys/drivers/ppcfloor/gnu-linux/bin/python test.py |
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. |