Fix CUDA8 crashing on 20; add true 21 support; add memory size display in Summary#255
Conversation
…size-check to before the cudaGetDeviceProperties fixes it; Bonus, now the Summary line shows GPU memory sizes at startup
|
Essentially bisected to when xmr-stak had the same init problems, it was never real clear what fixed it but it was right when they added the memory display in their summary (which required moving the section ahead of the properties call, which fixed it like magic for no reason anyone can find) I simply duplicated that move and then it works perfectly. Definitely not documented, and doesn't seem to matter anymore in 9.0-10.1, so it was an undocumented bug that had apparently been fixed but not in the final 8.0 |
|
It seems like I tested a 2.1 build before and it made no difference but the trick may be to compile ONLY 2.1 by itself with this patch (so that 2.0 generic layer is not added whatsoever) and then I see the above gains. |
|
Rotated this build into my other GTX970 (5.2) rig, works great there too although nothing was previously broken on this type of GPU Here's a successful jump from CN-R over to CN-GPU with no crashes and the memory info correct |
|
I revert |
|
idk, CLion introspector told me I'll leave them lit up like an airport instead, maybe I can figure out how to disable that code suggestion rule item |
CUDA8 would crash on init randomly but constantly
moving the memory-size-check to before the cudaGetDeviceProperties fixes it
Bonus, now the Summary line shows GPU memory sizes at startup
I have not seen another startup crash since applying this on my running branch, NVS5200M arch 21.
Also adds true 2.1 support which was at least 0.6H/s (2%) faster on CN-GPU when it's the only one included via
-DCUDA_ARCH=21- even slightly faster on easier variants like RWZMoved the deprecated targets silence flag to a proper location (it had been adding it once per arch within the loop, wrongly)