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

Home » Public Forums » archive » Can I have multiple threads in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Can I have multiple threads in IDL? [message #40381] Sat, 07 August 2004 10:07 Go to next message
Marc Reinig is currently offline  Marc Reinig
Messages: 30
Registered: June 2004
Member
We're currently running a very large computational program on a
multiprocessor machine. When the FFT portion runs, the CPU load on all 8
processors spikes, so IDL is making use of them, life is good.

However, we have another portion of the code that dose a massive nested loop
on some arrays, but the operation is carried out on a very small subset of
the array and IDL uses only a single processor. It could be easily broken
into threads if we were writing in C to allow the OS (Windows Server 2003)
to run the threads simultaneously.

We would like to break this processing into multiple threads in IDL so that
the task can be run on the other 7 processors in a similar manner. Is there
a way to create and run a thread in IDL?

Thanks in advance,

Marc Reinig
UCO/Lick
Laboratory for Adaptive Optics
Re: Can I have multiple threads in IDL? [message #40457 is a reply to message #40381] Wed, 11 August 2004 07:19 Go to previous message
Marc Reinig is currently offline  Marc Reinig
Messages: 30
Registered: June 2004
Member
Liam,
I'll try to get to the source today.

Thanks for your help.

Marco

"Liam Gumley" <Liam.Gumley@ssec.wisc.edu> wrote in message
news:cfaq0v$a04$1@news.doit.wisc.edu...
> Marc Reinig wrote:
>> We're currently running a very large computational program on a
>> multiprocessor machine. When the FFT portion runs, the CPU load on all
8
>> processors spikes, so IDL is making use of them, life is good.
>>
>> However, we have another portion of the code that dose a massive nested
loop
>> on some arrays, but the operation is carried out on a very small subset
of
>> the array and IDL uses only a single processor. It could be easily
broken
>> into threads if we were writing in C to allow the OS (Windows Server
2003)
>> to run the threads simultaneously.
>>
>> We would like to break this processing into multiple threads in IDL so
that
>> the task can be run on the other 7 processors in a similar manner. Is
there
>> a way to create and run a thread in IDL?
>>
>> Thanks in advance,
>>
>> Marc Reinig
>> UCO/Lick
>> Laboratory for Adaptive Optics
>
> Marc,
>
> Any chance you could post the code for the loop operation? Someone might
> be able to offer suggestions on how to convert it to array operations
> (and thus enable multi-threading).
>
> Cheers,
> Liam.
> Practical IDL Programming
> http://www.gumley.com/
Re: Can I have multiple threads in IDL? [message #40483 is a reply to message #40381] Tue, 10 August 2004 08:36 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Marc Reinig wrote:
> We're currently running a very large computational program on a
> multiprocessor machine. When the FFT portion runs, the CPU load on all 8
> processors spikes, so IDL is making use of them, life is good.
>
> However, we have another portion of the code that dose a massive nested loop
> on some arrays, but the operation is carried out on a very small subset of
> the array and IDL uses only a single processor. It could be easily broken
> into threads if we were writing in C to allow the OS (Windows Server 2003)
> to run the threads simultaneously.
>
> We would like to break this processing into multiple threads in IDL so that
> the task can be run on the other 7 processors in a similar manner. Is there
> a way to create and run a thread in IDL?
>
> Thanks in advance,
>
> Marc Reinig
> UCO/Lick
> Laboratory for Adaptive Optics

Marc,

Any chance you could post the code for the loop operation? Someone might
be able to offer suggestions on how to convert it to array operations
(and thus enable multi-threading).

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with TextBox from dfanning.com
Next Topic: Free_lun ALL

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

Current Time: Fri Oct 10 11:59:38 PDT 2025

Total time taken to generate the page: 0.48481 seconds