tromp / cuckoo

a memory-bound graph-theoretic proof-of-work system
Other
818 stars 173 forks source link

Assertion size <= BUCKETSIZE failed on Cuckarood #100

Closed shrikus closed 4 years ago

shrikus commented 5 years ago

tried on different systems with same results:


make
g++ -march=native -std=c++11 -Wall -Wno-format -Wno-deprecated-declarations -D_POSIX_C_SOURCE=200112L -O3 -DPREFETCH -I.  -pthread -o simple19 -DPROOFSIZE=42 -DEDGEBITS=19 simple.cpp ../crypto/blake2b-ref.c
./simple19 -n 71
Looking for 42-cycle on cuckarood19("",71), using 6144KB memory
nonce 71 k0 k1 k2 k3 23796193872092ea f1017d8a68c4b745 d312bd53d2cd307b 840acce5833ddc52
  6-cycle found
  6-cycle found
  10-cycle found
  8-cycle found
  14-cycle found
  26-cycle found
Time: 139 ms
g++ -march=native -std=c++11 -Wall -Wno-format -Wno-deprecated-declarations -D_POSIX_C_SOURCE=200112L -O3 -DPREFETCH -I.  -pthread -o mean29x4 -mno-avx2 -DNSIPHASH=4 -DEDGEBITS=29 mean.cpp ../crypto/blake2b-ref.c
./mean29x4 -n 671 -t 4 -s
Looking for 42-cycle on cuckaroo29("",671) with 50% edges
Using 3752MB bucket memory at 2aaaabad3010,
4x25MB thread memory at 2aab96314010,
4-way siphash, and 128 buckets.
nonce 671 k0 k1 k2 k3 1ca94ef2ca755950 871bcb5d19d949ff ef65aece17f0a4cb fc72fde261bdb7e0
mean29x4: mean.hpp:168: u32 zbucket<BUCKETSIZE>::setsize(const u8*) [with unsigned int BUCKETSIZE = 240128u; u32 = unsigned int; u8 = unsigned char]: Assertion `size <= BUCKETSIZE' failed.
make: *** [meantest] Aborted (core dumped)```
tromp commented 5 years ago

The cpu mean miner for cuckarood is not ready yet. I will exclude the meantest from cuckarood/Makefile ...

tromp commented 4 years ago

fixed and has been working for months now....