Re: Parallel Processing in IDL [message #72812] |
Mon, 11 October 2010 15:13  |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
On 11 oct, 12:35, Ammar Yusuf <amyus...@gmail.com> wrote:
> What's an easy way to use multiple processors in IDL? I have a large
> program but I want to start with a simple program first. Let's say I
> have an array of a million integers and I have four processors. I want
> to add all the elements in this array and output it. I could split the
> array into four parts and give it to each processor right? Is this
> possible? How would I do this? Thanks!
I wrote a routine to use multi-threading some time ago. I use
IDL_IDLBridge and SHMMAP and it works good for some cases. If you are
interested I can send you a copy.
It only works for functions without output keywords.
Cheers,
nata
|
|
|
|
|
|
|
|
|
|
|
Re: Parallel Processing in IDL [message #94608 is a reply to message #72812] |
Sat, 22 July 2017 14:25   |
charan.harish
Messages: 1 Registered: July 2017
|
Junior Member |
|
|
On Tuesday, October 12, 2010 at 3:43:48 AM UTC+5:30, nata wrote:
> On 11 oct, 12:35, Ammar Yusuf <amyus...@gmail.com> wrote:
>> What's an easy way to use multiple processors in IDL? I have a large
>> program but I want to start with a simple program first. Let's say I
>> have an array of a million integers and I have four processors. I want
>> to add all the elements in this array and output it. I could split the
>> array into four parts and give it to each processor right? Is this
>> possible? How would I do this? Thanks!
>
> I wrote a routine to use multi-threading some time ago. I use
> IDL_IDLBridge and SHMMAP and it works good for some cases. If you are
> interested I can send you a copy.
> It only works for functions without output keywords.
>
> Cheers,
> nata
Dear Nata,
Can you send me your script? Further, I would like to tell you my problem that is, I am currently trying to read a bunch of *.sdf files from IDL and then doing post-processing. The problem is since the data size is huge, my IDL script is taking an enormous time.
Hence, can you kindly advise me as of how should I write a parallel IDL script which can read the file in parallel mode and finishes quickly?
Thanking you in advance!
Looking forward to a positive for a positive responce.
|
|
|
|