On Wed, Nov 4, 2009 at 4:49 PM, Riccardo Corradini <
[email protected]> wrote:
> Hi Søren,
> thanks for your quick reply.
> The code is general-purpose, but as I told you I would love 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`
>
> OSCBIN=~/oompi-1.0.4/bin
>
> export PATH=$OMPIBIN:$PATH
> export PATH=$OSCBIN:$PATH
> export LD_LIBRARY_PATH=:$OMPILIB:$LD_LIBRARY_PATH
>
> unset ompi_info OMPIBIN OMPILIB OMPISCD OSCBIN
>
> 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
>
> Now I will include the basic functions
>
> // mkoctfile -I/home/corradin/openmpi-1.3.3/include -lpthread
> -L/home/corradin/openmpi-1.3.3/lib -lmpi_cxx -lmpi -lopen-rte -lopen-pal
> -ldl -lnsl -lutil -lm -ldl MPI_Init.cc
>
>
This looks good. Do I get it correctly that it is not necessary to relink
Octave? I'd suggest you create the package on OctaveForge, then others will
be able to try it and contribute.
regards
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev