Yes you borked the windows performance (also please add .exe to the release filename)JohnWoe wrote: ↑Sat Nov 20, 2021 5:07 pm ^ Are you running Windows? In Linux this works. I use this in C++ for threading:collatzzz tries to grab all cores possible. Use "-cores 3" to limit cores. As for open source code. Will see. That's just stress...Code: Select all
g_cpus = std::clamp(nth, 1, static_cast<int>(std::thread::hardware_concurrency()));
I added some scaling pyplot on my 16 CPU / 4800U: https://github.com/SamuraiDangyo/collatzzz
I generator 1 million Collatz conjecture steps here: https://github.com/SamuraiDangyo/collat ... -steps.txt
Are you finding errors?
Collatz sum 0 -> 1B in 22.9 seconds![]()
Code: Select all
> ./collatzzz -sum 0 1000000000 ... Sum ... ============================== Collatz: 0 -> 1,000,000,000 Sum(steps): 203,234,783,374 CPU(s): 16 NPS: 8,867,910,000 Time(ms): 22,918
because you are using POSIX and its not build with MSVC - or CLANG on Windows.
Ryzen 9 5950X:
Code: Select all
collatzzz-x86-0.3-windows.exe -sum 0 1000000000
collatzzz 0.3 by Toni Helminen
... Sum ...
==============================
Collatz: 0 -> 1,000,000,000
Sum(steps): 203,234,783,374
CPU(s): 32
Hash(MB): 0
SPS: 5,016,161,106
Time(ms): 40,516
No worries - just push them to the git repo in a src folder.