Home »
Public Forums »
archive »
Passing an array from IDL to MPI
Passing an array from IDL to MPI [message #28858] |
Sun, 13 January 2002 23:47  |
Miska Le Louarn
Messages: 8 Registered: December 1995
|
Junior Member |
|
|
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...
Thanks in advance !
Miska
PS: I am using MPICH under Linux. The C code uses FFTW.
--
* Miska Le Louarn Phone: (49) 89 320 06 908 *
* European Southern Observatory FAX : (49) 89 320 23 62 *
* Karl Schwarzschild Str. 2 e-mail: lelouarn@eso.org *
* D-85748 Garching http://www.eso.org/~lelouarn *
* Germany
*
|
|
|
Current Time: Wed Oct 08 19:27:37 PDT 2025
Total time taken to generate the page: 0.00414 seconds