spacemeshos / gpu-post

Spacemesh proof of space time gpu optimized setup
GNU General Public License v3.0
29 stars 9 forks source link

pow solution not found in expected trials (ubuntu 20.04/Cuda) #46

Closed avive closed 3 years ago

avive commented 3 years ago

Repro: run pos-server make test on a system w multiple cuda gpu providers.

Results: the first job that uses the 2nd provider fails to find pow solution in the expected number of pow-only iteration.

Expected: find pow-solution when it is not found in leaves computation phase in the expected number of trials.

With D= 0x000000fffff... (3 zero bytes prefix) the expected number of trials to find a pow solution should be 16,777,216. p for 3 leading 0s is 0.00000005960 ((1/256)^3) so with E=1/p we get to 16,777,216 expected trials.