Re: Multi-core techniques [message #70420] |
Fri, 16 April 2010 03:49  |
Juggernaut
Messages: 83 Registered: June 2008
|
Member |
|
|
On Apr 16, 6:47 am, Bennett <juggernau...@gmail.com> wrote:
> On Apr 16, 5:02 am, Allard de Wit <allard.de...@wur.nl> wrote:
>
>
>
>> Dear Tim,
>
>> My experience with the IDL thread pool is that for certain type of
>> operations in ENVI, the thread pool is actually slowing things down.
>> The most notable example was a "Sum data bands" operation in ENVI
>> which executed extremely slow. After disabling the thread pool (cpu,
>> TPOOL_NTHREADS=1), the operation executed several times faster. Maybe
>> some IDL internals that decide on when to use or not to use the thread
>> pool, performed poorly in the case.
>
>> Another approach on parallelizing your process is to use the
>> IDL_IDLbridge which allows you to spawn multiple IDL session which can
>> run on different cores. You may want to have a look at my process
>> manager, which uses this technique to distribute processing tasks over
>> several bridges. You can get the code here:
>> ftp://sc:ima...@ftp.alterra.nl/pub/adewit/process_manager.zi p
>
>> Allard de Wit
>
> Other methods include the use of the IDL_IDLBridge to spawn a separate
> processes on the other core. I've found this works well if the
> overhead of setting up the IDL_IDLBridge object is low.
<--- needs to read previous posts more carefully....
|
|
|
|
|
|
|
|
Re: Multi-core techniques [message #70516 is a reply to message #70422] |
Fri, 16 April 2010 06:54  |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Hi Allard,
I'm trying to understand your code but it's not clear for me.
It seems that you keep the input variables in an object and then you
put your specific code into cgi_process_client...
Anyway, I don't understand at all. Could you give us an example of how
to use your library ?. For example, if I have this program:
FUNCTION SUM, a
RETURN, a++
END
And I've to run it 1000 times using different input parameters and my
computer has 4 CPUs, how could I use your library ?
Thanks for your help,
nata
|
|
|