mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   compiler/assembler optimizations possible? (https://www.mersenneforum.org/showthread.php?t=15297)

ixfd64 2011-02-23 01:08

compiler/assembler optimizations possible?
 
It seems that a stable release of Prime95 26.x may become available soon. Notably, version 26.x is going to feature (among other things) optimizations for various CPU architectures.

However, some people report getting faster iteration times simply by changing the way Prime95 is compiled. See [url=http://www.mersenneforum.org/showpost.php?p=239075&postcount=173]this post[/url], for example.

Does Prime95 26.x use these optimizations? If not, then an additional 5-10% increase in performance would be quite nice!

Prime95 2011-02-23 01:46

[QUOTE=ixfd64;253461]However, some people report getting faster iteration times simply by changing the way Prime95 is compiled. [/QUOTE]

I put little stock in such reports. All the CPU intensive code is in assembly language. Recompiling C code will not affect timings.

CRGreathouse 2011-02-23 04:15

[QUOTE=Prime95;253464]I put little stock in such reports. All the CPU intensive code is in assembly language. Recompiling C code will not affect timings.[/QUOTE]

Or, more precisely: the amount of time saved by recompiling will be smaller than that spent recompiling. :)

tichy 2011-02-23 08:16

[QUOTE=ixfd64;253461]See [URL="http://www.mersenneforum.org/showpost.php?p=239075&postcount=173"]this post[/URL], for example.[/QUOTE]

Yes, these were bogus effects. For some reason deviation if timings was more frequently on favour of recompiled binary than the official one.

However, back in december I started tackling the assembler part of mprime. When I reach something more interesting than 1-tick speedup of 32-bit =<74bit factoring code I will share it here. Right now my priority is porting as much as I can to NASM. GAS already proved a viable alternative to MASM, but the chores of adding debugging symbols (I used STABS directives) was to much troublesome.

tichy 2011-02-23 11:30

[QUOTE=tichy;253476]bogus[/QUOTE]
This is a wrong word - not being a native english speaker leads sometimes to such mistakes. I needed an adjective which means that the observed timings improvements were not intrinsicaly related to the code itself but were merely result of the environment the code was ran in.

axn 2011-02-23 21:43

[QUOTE=tichy;253491]This is a wrong word - not being a native english speaker leads sometimes to such mistakes. I needed an adjective which means that the observed timings improvements were not intrinsicaly related to the code itself but were merely result of the environment the code was ran in.[/QUOTE]

In the context that you used, it fits perfectly.

cheesehead 2011-02-25 03:59

[QUOTE=tichy;253491]This is a wrong word - not being a native english speaker leads sometimes to such mistakes. I needed an adjective which means that the observed timings improvements were not intrinsicaly related to the code itself but were merely result of the environment the code was ran in.[/QUOTE]It wasn't [I]deliberately[/I] bogus, which would have implied deception. It was unintentionally, accidentally (and unknowingly, at that time) bogus -- and most readers would understand that. :smile:

henryzz 2011-02-25 20:05

[QUOTE=cheesehead;253652]and most readers would understand that. :smile:[/QUOTE]
Maybe not some non-native english speakers.


All times are UTC. The time now is 04:25.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.