octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patching Octave-MPI


From: Paul Kienzle
Subject: Re: Patching Octave-MPI
Date: Thu, 21 Nov 2002 01:55:44 -0500
User-agent: Mutt/1.2.5.1i

There are a variety of approaches to parallelism which have been done
in matlab m-files and mex-files.  E.g.,

        http://supertech.lcs.mit.edu/~cly/survey.html

I'm a little surprised that you would need to patch octave itself to
do the same.

If you want fast parallel matrix operations, wouldn't you be better off
having an interface to scalapack or something similar?  Or are you
designing new parallel algorithms?  

Paul Kienzle
address@hidden

On Wed, Nov 20, 2002 at 09:12:07PM -0600, John W. Eaton wrote:
> On 20-Nov-2002, JD Cole <address@hidden> wrote:
> 
> |    In the process of patching Andy's MPI support into octave, I have 
> | come across the following dilemma: Should I add additional make targets 
> | to config files such as Makeconf.in, like this:
> | + mpi%.o : mpi%.cc
> | +     $(CXX) -c $(CPPFLAGS) $(MPI_DEFS) $(MPI_CPPFLAGS) $(ALL_CXXFLAGS) 
> | $< -o $@
> | 
> | %.o : %.cc
> |     $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@
> | 
> | or
> | 
> | keep with the original:
> | 
> | %.o : %.cc
> |     $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@
> | 
> | and add MPI_CPPFLAGS to ALL_CXXFLAGS somewhere inbetween configure.in 
> | and Makeconf.in (I'm wondering if appending XTRA_CXXFLAGS would be 
> | appropriate for this?)
> 
> What are these MPI_* variables defined to be?  Are special things
> needed because of the way the MPI headers and libraries are installed
> on your system, or is it something that is always needed?
> 
> | I am partial to the latter solution because it reduces the amount of 
> | code duplication in the makefiles. As far as I could see adding MPI 
> | includes to the global includes with which octave is compiled shouldn't 
> | effect the end result. The situation may be slightly different if I were 
> | to add the MPI_LDFLAGS to ALL_LDFLAGS.
> 
> What would go in MPI_LDFLAGS?
> 
> | Any thoughts?
> 
> I've been assuming that we would add a configure option to enable
> MPI.  That would add whatever is necessary to the normal INCFLAGS,
> etc.
> 
> jwe
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]