Page 2 of 2

Re: Loop & Procedure alignment

Posted: Mon Aug 01, 2016 3:21 pm
by Keya
you know that a trivial loop is never going to benefit from microoptimization from alignment so it was strange :P i was thinking ones with more instructions than can be prefetched (yours had about 30 bytes worth), ones that run a long time like the **** i was running Dec-Feb lol (yours ran for 1.4 seconds!), ones with non-predictable branches (yours had none), ones with nested loops (yours was one unnested loop), ones that read and write data, etc. No point wasting your time on this though, I only suggested it because i thought it seemed (im obviously just speculating) very easy for Fred to be able to add support for something which Intel recommends, as it's essentially just adding support for an "! align" statement to be inserted and it would complement PB's data/structure alignment, no biggie! :)

Re: Loop & Procedure alignment

Posted: Mon Aug 01, 2016 3:36 pm
by wilbert
Keya wrote:ones that run a long time like the **** i was running Dec-Feb lol
:shock: :shock: :shock: :? :shock: :shock: :shock:
You had a single application that took three months to finish ?

Re: Loop & Procedure alignment

Posted: Mon Aug 01, 2016 3:43 pm
by Keya
no it would run for usually up to 20 hours in one run at a time, and i had usually about five but sometimes up to eight instances of the process running at the one time (even with all @ Below Normal priority it was very noisy as it made all my fans go to full and computer is in same room as bed!), but yes had to run for over 3 months all up (approx 16/7 overall). this was image processing with varying size kernels 4x4 to 8x8, make 1 subtle modification to the kernel, reapply to testbed of 1000 images, do statistical analysis, repeat... 3 months later all kernels are analysed and the cream rises to the top :) too scared to think how long it wouldve taken on my old pc which is like 8 years older lol, i wouldnt have even considered it. I wouldnt have even started the whole thing had i known it was going to take so long but after a month it was like ok dont want to just waste a whole months work, so kept going. It was a lot of work for little reward, but not a waste.

Re: Loop & Procedure alignment

Posted: Mon Aug 01, 2016 4:47 pm
by Fred
Don't take my question wrong, it wasn't the say it was useless. I just wanted to see what we would gain if we implemented it. You now, trusting intel will work well on Intel CPU while often perform badly on AMD and vice-versa.

Re: Loop & Procedure alignment

Posted: Mon Aug 01, 2016 4:50 pm
by Keya
yes just another feature request because i thought the three million others weren't keeping you busy enough! If it's never added i'm sure i'll still be able to sleep ok at night lol :) thankyou as always for your time and consideration Fred, very much appreciated