-
p3rLwhy xmrig 5.5.1 is crashing on x32 ?
-
p3rLhow to feeexeeet
-
cohchoIs it safe to use std::atomic<uint32>::fetch_add(1) in real miner?
-
cohchoit's present in randomx-benchmark
-
tevadorit is safe, but there are better ways to distribute nonces
-
tevadoryou can make many non-overlapping sequences
-
cohchoI've just get duplicate value from fetch_add(1) within the same thread. That's why asked here
-
hycindeed, simpler to just divide nonce space by number of threads, and not worry about it
-
cohchoIt's iterating by N nonces within nonce space and assign i-th part to each thread. I'm trying to decrease delay of switching from previous job. It's up to N / (worker speed) now.
-
cohchoIf that problem with atomic is real then I can't use them even for job notification.
-
cohchoMaybe it has happened due loading randomx library from memory buffer.
-
cohchoCan't reproduce it in c++ binary without sophisticated loading.
-
cohchoWhat efficient way will you use for new job notification except atomic and decreased threads's step within nonce space?
-
cohchosome structure under mutex?
-
cohchoagain duplicate but in two different threads, something doesn't work
-
sech1atomic should just work
-
sech1returning same value twice is weird
-
cohchoif this is all required for fetch_add: "lock xadd QWORD PTR [rax],rdx" then it should really work even in jit with arbitrary memory address
-
atocYo
-
tevadorcohcho: yes, just note that this instruction can take 20-50 CPU cycles
-
atoctevador is there a paper on RandomX?
-
atoci.e how it works?
-
tevadorthere are extensive docs on github
-
atoccool, in the same repo?
-
tevador
-
atocooh found it
-
atocthis looks good too: github.com/tevador/RandomX/blob/master/doc/design.md
-
atoc(y)
-
tevadoryes, there are two docs: the formal specs and the design comments
-
atocthanks didn't know if it was all code or not and if there was a separate paper
-
tevadoreverything is in the github repo, including the audit reports
-
atocCool thanks. I did not know you hung out in this chat. I'll probably be back with questions,
-
tevadorok, this is the right channel for questions
-
atocSweet