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

Home » Public Forums » archive » IDL program runs faster on slower CPU
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: IDL program runs faster on slower CPU [message #88081 is a reply to message #88074] Wed, 19 March 2014 01:45 Go to previous messageGo to previous message
Deckard++; is currently offline  Deckard++;
Messages: 11
Registered: March 2010
Junior Member
Le mercredi 19 mars 2014 02:47:56 UTC+1, Craig Markwardt a écrit :
> On Tuesday, March 18, 2014 8:22:44 AM UTC-4, Arthur Vigan wrote:
>
>> Le lundi 17 mars 2014 18:33:27 UTC+1, Craig Markwardt a écrit :
>
>>> On Sunday, March 16, 2014 6:15:04 PM UTC-4, Arthur Vigan wrote:
>
>>>
>
>>>> Strangely, the code runs about 4 to 5 times faster on the MacBook Pro. The code is strictly identical, with the same starting point, and it finds exactly the same result in the same number of iterations. I also mention that the program does not rely on disk access that could slow things down: all the data is in memory.
>
>>>
>
>>> I would suggest using PROFILER to find out where the bottleneck is. My first guess is you have some numerical faults like NaNs which are being handled by the two platforms differently. Sometimes numerical exceptions are handled very slowly because they take a round trip to the kernel.
>
>>
>
>>
>
>>
>
>> It could be a possibility, but after running the profiler I am not so sure. The profiler output seems to show very mixed results, with some things running faster on the Mac, and some things running faster on the server. But more generally, any complex program seems to run faster on the Mac
>
>>
>
>>
>
>>
>
>> I just ran a simple test on the two machines:
>
> ...
>
>
>
> It's still worth it to check your actual problem, not a simple test.
>
>
>
> CM

Yes, true. I have investigated a bit more by placing systime(/sec) commands around different portions of my code, and the result is what I was saying above: every chunk of code seems to run slower on the linux workstation.

Concerning the numerical faults that you were mentioning, do you know if there is any way to check if there are any? Are they reported somewhere by the system, triggering some kind of message?

-- Arthur;
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL's function SFIT coefficients
Next Topic: HOW TO COMPUTE BOUNDARY VALUES WHEN YOU HAVE TWO SPIKES IN YOUR DATA

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

Current Time: Wed Oct 08 18:04:28 PDT 2025

Total time taken to generate the page: 0.00453 seconds