Re: Thread-Pool for operators? [message #73854] |
Tue, 30 November 2010 08:17 |
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  |
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.
|
|
|