File: README

package info (click to toggle)
octave-mpi 1.2.0-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 352 kB
  • sloc: cpp: 1,895; makefile: 28
file content (78 lines) | stat: -rw-r--r-- 2,782 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
CONTENTS:

--------------------
1) INSTALLATION INSTRUCTIONS

2) ORIGINAL README
--------------------

1) INSTALLATION INSTRUCTIONS

The makefile included derives all the info it needs for building the code 
from running mpic++, so make sure that mpicc is in your path before running Octave
or type 

putenv ("PATH", "/path/to/mpic++:${PATH}")

from within Octave.
Once this is done you should be able to install openmpi_ext from a locally dowloaded tarball
by doing:

pkg install mpi-<version>.tar.gz

or directly from the ftp server by doing

pkg install -forge mpi


2) ORIGINAL README


Below are the contents of the original README file included with the first release
by R. Corradini, I am not sure all the info there still make sense but they are still
reported here, just in case ...

The code is general-purpose, but  I would like to use it for econometrics.
So the first step will be to install the following tarball from
http://www.open-mpi.org/software/ompi/v1.3/downloads/openmpi-1.3.3.tar.bz2
possibly in a multi-core computer to run my simple examples
and configure it for instance in the following way (/home/user is your $HOME)
./configure --enable-mpirun-prefix-by-default --enable-heterogeneous --prefix=/home/user/openmpi-1.3.3/ --enable-static

and modify .bashrc in your home
 OMPIBIN=`$ompi_info -path     bindir  -parsable | cut -d: -f3`
 OMPILIB=`$ompi_info -path     libdir  -parsable | cut -d: -f3`
 OMPISCD=`$ompi_info -path sysconfdir  -parsable | cut -d: -f3`



export            PATH=$OMPIBIN:$PATH

export LD_LIBRARY_PATH=:$OMPILIB:$LD_LIBRARY_PATH

unset  ompi_info OMPIBIN OMPILIB OMPISCD 

If you want to install it on a simple toy network, just assign a static ip address on every linux computer and set up 
an ssh connection with no password (see for instance http://linuxproblem.org/art_9.html ) and then install openmpi and octave always with the same versions and with the same info on .bashrc for the same user.

After this type in a terminal mpiCC --showme
In my case I will have something like

g++ -I/home/user/openmpi-1.3.3/include -pthread -L/home/user/openmpi-1.3.3/lib -lmpi_cxx -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl

This will be useful for mkoctfile
for instance for MPI_Init.cc we shall have
mkoctfile -I/home/user/openmpi-1.3.3/include -lpthread -L/home/user/openmpi-1.3.3/lib -lmpi_cxx -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lm -ldl MPI_Init.cc



The m files just contain some very simple examples
More complex examples will be provided in the next future.
See also
http://static.msi.umn.edu/tutorial/scicomp/general/MPI/content6.html
to understand the logic of MPI Derived Datatypes and how could they be easily handled by openmpi_ext package.
Bests regards
Riccardo Corradini