Thread: 2^n-3
View Single Post
Old 2020-11-07, 07:04   #3
preda's Avatar
"Mihai Preda"
Apr 2015

3×11×41 Posts

Originally Posted by paulunderwood View Post
How easy would it be to alter gpuOwl to crunch 2^n-3?

Is the current hackable to do this? If so what needs to be changed? Is it just a matter of hacking the carry code?
One problem is that is very heavily optimized for the "-1" case -- the weighting/unweighting. A lot of tricks have been applied in that area. To change, a logical approach would be to unoptimize (i.e. produce clean & slow code, that can be checked to be correct), then implement the new functionality, then optionally reoptimize the new code.

Another approach is to start from a clean-slate, and import blocks from if/when they prove useful.

Last fiddled with by preda on 2020-11-07 at 07:06
preda is offline   Reply With Quote