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

Home » Public Forums » archive » Intel iMac IDL performance
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Intel iMac IDL performance [message #47930 is a reply to message #47652] Mon, 13 March 2006 09:59 Go to previous messageGo to previous message
Wolf Schweitzer is currently offline  Wolf Schweitzer
Messages: 21
Registered: October 2001
Junior Member
JD Smith wrote:
> This assumes TPOOL_MIN_ELTS=100000. Setting tpool_min_elts with CPU will
> reset this, which will make the size of the vector much smaller, and make
> this somewhat artificial (though I don't doubt a factor of 10, really). I
> guess I should have put a:
>
> cpu,tpool_min_elts=100000
>
> first, to even the playing field.
>
> JD

I did set the vector to 100000 (which rids me of depending on that
assumption with the threadpool minimal elements - setting being constant).

Then I vary TPOOL_MIN_ELTS until I find the fastest speed. I personally
would see no point in recording an artificially slow speed just because
for a given machine / task, the TPOOL_MIN_ELTS is suboptimal. So you'd
first seek the best speed, and record that.

Below my "tweaked" version.

Regards, Wolf.


---


pro jdstest

cpu,/reset
a=randomu(sd,100L*!CPU.TPOOL_MIN_ELTS)
t=systime(1) & a=sqrt(a)/(a>0.5) & ri =systime(1)-t

print, 'initial result ', ri, ' @ tpool ', !cpu.tpool_min_elts

bs= double(5)
p = 100
pool=0

for n = 0.,30. do begin

cpu,tpool_min_elts=bs^n
p=100
for i = 1,32 do begin

a=randomu(sd,100L *100000) ;*!CPU.TPOOL_MIN_ELTS)
t=systime(1) & a=sqrt(a)/(a>0.5) & r =systime(1)-t

if r lt p then begin
print, ' found new optimum at ',r, ' seconds @ tpool_min_elts ',bs^n
p = r
pool=n
end


end

end

print, ' final results ', p, ' @ tpoolminelts ', bs^pool
print, ' performance gain through tweaking tpool variable : new jd test
runs at percentage of ', p/ri * 100., ' %'

end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: formatting exponential notation
Next Topic: Database vs. File Parsing

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

Current Time: Wed Oct 08 14:09:20 PDT 2025

Total time taken to generate the page: 0.00329 seconds