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

Home » Public Forums » archive » Re: Thread-Pool for operators?
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
Re: Thread-Pool for operators? [message #73854] Tue, 30 November 2010 08:17
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
On 30 Nov., 15:49, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Nov 30, 9:15 am, chris <rog...@googlemail.com> wrote:
>
>> Hi folks,
>> as documented thread-pool keywords can be also used for binary and
>> unary operators like GE. The question is, how? :)
>
>> It is clear for 'usual' routines such as TOTAL:
>
>> IDL> r=randomu(sd,100000000l) & t0=systime(1)
>> &_=total(r,TPOOL_MIN_ELTS=n_elements(r)) & print,systime(1)-t0
>>      0.075000048
>> IDL> r=randomu(sd,100000000l) & t0=systime(1) &_=total(r) &
>> print,systime(1)-t0
>>      0.081000090
>
> You need to use the equivalent keywords of the cpu procedure, that
> changes the default used by anything that uses the thread pool.

Ok, thanks. But that is not my intention. Anyway, I know now, this is
only possible, if I would write a wrapper for GE etc.

Cheers

CR
Re: Thread-Pool for operators? [message #73855 is a reply to message #73854] Tue, 30 November 2010 06:49 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Nov 30, 9:15 am, chris <rog...@googlemail.com> wrote:
> Hi folks,
> as documented thread-pool keywords can be also used for binary and
> unary operators like GE. The question is, how? :)
>
> It is clear for 'usual' routines such as TOTAL:
>
> IDL> r=randomu(sd,100000000l) & t0=systime(1)
> &_=total(r,TPOOL_MIN_ELTS=n_elements(r)) & print,systime(1)-t0
>      0.075000048
> IDL> r=randomu(sd,100000000l) & t0=systime(1) &_=total(r) &
> print,systime(1)-t0
>      0.081000090

You need to use the equivalent keywords of the cpu procedure, that
changes the default used by anything that uses the thread pool.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL - Extracting data from within boundary defined by shapefile
Next Topic: NG Transparency Bug

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

Current Time: Fri Oct 10 09:04:48 PDT 2025

Total time taken to generate the page: 0.52158 seconds