Dear Muthu,
you may also use openmpi_ext package available at octave-forge in folder extra:
http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/extra/openmpi_ext/

Hope this might give further material and other ideas to your research project.
Bests
Riccardo


--- Lun 8/2/10, Muthiah Annamalai <[email protected]> ha scritto:

Da: Muthiah Annamalai <[email protected]>
Oggetto: [OctDev] GA toolbox : scripts to use data parallelism by multicore 
fitness evaluation
A: [email protected]
Data: Lunedì 8 febbraio 2010, 02:51

Hello Luca Favatella, and friends,

Octave can be used in ways Matlab cannot be,
 for example
in problems which have data-parallelism ( same problem solved
for different initial conditions/ data ) Octave gives a large speedup
factors.

A master Octave can spawn several Octave processess whose parameters
are written in a disk and then wait for all of them to end, and pickup
the resulting data
from known saved files. So this would easily allow throwing
multicore resources at a problem which allows data parallelism, which otherwise
would run as just a single Octave serial process.

In a GA toolbox we evaluate same function/program for different
data and this can make use of the data parallelism.

Under the assumptions of having a  Fitness functions (f(x))  to be
specified as a string, and
[ncores] has to be the number of cores to be used in the GA fitness evaluation,
specified as an attribute to GA problem structure, we can do this by creating
replacing __ga_scores__.m
 script with the following pair of scripts,

__ga_multicore_scores__.m
__ga_multicore_helper__.m

You can test these scripts by, running test_multicore.m .

(please see attachments. )

We need fitness functions as a string,  since child processess donot share
memory with the parent/master process.

Ofcourse the benefit of a multicore fitness function evaluator doesnt
show up until
out  f(x) is very time-consuming. This is a neat problem with explicit
parallelism.

I would like to help integrate these scripts with the current design
of the GA toolbox
by adding the attributes to the GA.m, so I am stopping from directly
editing the rest
of the toolbox.

Best,
-Muthu

-----Segue allegato-----

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage,
 colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-----Segue allegato-----

_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev



      
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to