Re: Parallelise FOR loop in IDL [message #77679] |
Mon, 19 September 2011 06:58  |
Vincent Sarago
Messages: 34 Registered: September 2011
|
Member |
|
|
Hi Robin,
You may have a look on : http://www.ittvis.com/Default.aspx?tabid=1540&id=1306
I never used it, but it might works.
You can also look to :
http://www.ittvis.com/portals/0/whitepapers/IDL_MultiThread. pdf
http://slugidl.pbworks.com/w/page/29199259/Child%20Processes
Cheers,
Vincent,
On 19 sep, 14:55, Robin Wilson <ro...@rtwilson.com> wrote:
> Hi,
>
> I have some IDL code like the following, which implements a Monte Carlo
> ray-tracing model:
>
> FOR i = 0, 1000 DO BEGIN
> ; Start a new ray from source
> ; Do all sorts of complicated processing on it
> ; Record where it lands
> ENDFOR
>
> I want to be able to run it for more iterations while still keeping it
> fairly fast. If I was writing this in C I'd use OpenMP to split the
> iterations of the loop between the available cores (as they are
> independent) and then use a reduction to join all of the records of
> where the rays end up together.
>
> Is there any way to do anything like this in IDL? I've seen FastDL but
> that seems to use MPI instead (not quite what I want...) and
> unfortunately doesn't appear to be available free for academics.
>
> Any ideas?
>
> Robin
>
> ------------------
> Robin Wilson
> A PhD student studying complexity in remote sensingwww.rtwilson.com/academic
|
|
|