Changes between Version 10 and Version 11 of AnugaParallel
- Timestamp:
- Jan 10, 2012, 4:14:03 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AnugaParallel
v10 v11 1 1 == INSTALLING anuga_parallel == 2 2 3 First you should install the most uptodate version of the code. Follow the instructions to install [InstallUbuntuSvn Anuga on Ubuntu.] 3 First you should install the most uptodate version of the code. Follow the instructions to install [InstallUbuntuSvn Anuga on Ubuntu.] This should download the anuga code (along wit hte parallel code) to a directory of the form 4 {{{ 5 /home/username/anuga_core 6 }}} 7 where username is of course your username on your machine. 4 8 5 9 6 === anuga_parallel === 7 8 Well first you need to get the anuga_parallel code. You can get this from our svn repository with userid anonymous (blank password) 9 10 The location is https://anuga.anu.edu.au/svn/anuga/trunk/anuga_core/source/anuga_parallel 11 12 (By the way, the most recent version of the development code of anuga 13 is available at 14 https://anuga.anu.edu.au/svn/anuga/trunk/anuga_core/source/anuga 15 ) 16 17 Setup your PYTHONPATH to point to location of the source directory 10 Make sure you have setup your PYTHONPATH to point to location of the source directory 18 11 19 12 For instance I have the following line in my .bashrc file 20 13 21 14 {{{ 22 export PYTHONPATH=/home/ steve/anuga/anuga_core/source15 export PYTHONPATH=/home/username/anuga_core/source 23 16 }}} 24 17 18 At this stage you should have a working version of the sequential anuga program. I.e. you should be able to run command 19 {{{ 20 python test_all.py 21 }}} 22 from the anuga_core directory and have your installation pass all the tests (well nearly all as this is the development version and there are sometimes a few tests that fail). 23 24 25 == anuga_parallel == 26 27 Now to get anuga_parallel to work, we need to install some other packages. 25 28 26 29 === MPI === 27 30 28 Now you need to install MPI on your system. OPENMPI and MPICH2 are supported by pypar (see below) so both should be ok. 31 Now you need to install MPI on your system. OPENMPI and MPICH2 are supported by pypar (see below) so both should be ok. But I tend to use mpich2. 32 33 So install mpich2 on your system via apt-get 34 {{{ 35 sudo apt-get install mpich2 36 }}} 37 29 38 30 39 Make sure mpi works. You should be able to run a program in parallel. Try something as simple as … … 58 67 sudo python setup.py install 59 68 }}} 69 70 from the source directory in the pypar distribution. 71 72 Fire up python and see if you can {{{import pypar}}} 60 73 61 74 Make sure the pypar examples work