![]() |
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! |
[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. |
[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. :) |
[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. |
[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. |
[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. |
[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:
|
[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.