Closed Spudz76 closed 2 years ago
#include <cstddef>
should solve this error.
Thank you.
Adjusted; removed version check it doesn't seem to matter...
Compile tested with <cstddef>
with gcc-6 and gcc-8 against CUDA 10.2, currently verifying gcc-5 with CUDA 8.0 but expect it will work fine.
EDIT: yes CUDA 8.0 with gcc-5 compiled normally
Compiling for CUDA Toolkit 8.0 or 9.1 where maximum GCC is 5 or 6 crashed with:
Comparison with the upstream/main xmrig Algorithm.h showed that including
<functional>
makes it work again. Wrapped that inside a GCC version test since it seems to not be needed anymore with gcc7 or newer. Remove the ifdef wrapping if it doesn't matter (it probably doesn't, there is no wrap in main xmrig file).