comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Passing an array from IDL to MPI
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Passing an array from IDL to MPI [message #28855 is a reply to message #28852] Mon, 14 January 2002 04:18 Go to previous messageGo to previous message
ronn is currently offline  ronn
Messages: 123
Registered: April 1999
Senior Member
in article 3C428D26.1080405@eso.org, Miska Le Louarn at lelouarn@eso.org
wrote on 1/14/02 2:47 AM:

> Hi all IDL / parallel computing experts !
>
> I am trying to integrate a piece of MPI-code written in C into my IDL
> program.
> I have a cube of data produced in the IDL code, which needs to be
> Fourier transformed. So I want to write a little MPI program (in C)
> which uses several CPUs to compute the FFT of each plane in the cube.
> My problem is that I need to pass the data cube to the MPI program. This
> would not a problem with a plain C program (a simple call_external would
> do the trick), but MPI likes to be lauched with the "mpirun" command
> which initializes all the parallel stuff.
>
> Any ideas ?
> Of course I could write the data cube to a file from IDL. I could then
> spawn the mpirun process from IDL and have the MPI code read the file.
> But I think there is a significant loss of time doing that. Plus it's
> not very elegant...
>
> I hope someone has an idea...
Hi Miska,

I have written an IDL interface to PVM (another parallel processing system)
so it is possible to do. PVM must also be initialized with a function call
that returns some parameters. You then spawn off the child processes with
these parameters as part of the call.

What this means is that you have to write a multi-function dll that contains
all the interface routines that you need.

Hope this helps.

-Ronn


--
Ronn Kling
KRS, inc.
email: ronn@rlkling.com
"Application Development with IDL"� programming book updated for IDL5.5!
"Calling C from IDL, Using DLM's to extend your IDL code" NEW BOOK!
http://www.rlkling.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Turning off math error checking for a code block
Next Topic: naming elements in an array

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:37:18 PDT 2025

Total time taken to generate the page: 0.08126 seconds