KlausT / ccminer-cryptonight

Software for mining various cryptocoins, like Monero (pool mining only)
GNU General Public License v3.0
133 stars 30 forks source link

validation errors #4

Closed KlausT closed 8 years ago

KlausT commented 8 years ago

Looks like the 64bit build with CUDA 7.5 is broken. At least under Windows.

ZeroASIC commented 8 years ago

CUDA 7.5 gives a memcpy error on Ubuntu 16.04 64bit. I tracked down a bug for a different project that suggests it might be fixed in CUDA 8.0.

Here's the error I get: /usr/include/string.h: In function ‘void* mempcpyinline(void, const void_, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (dest, src, n) + __n;

Here's the issue for the other project https://github.com/BVLC/caffe/issues/4046

KlausT commented 8 years ago

I think you get this error because the gcc version is not compatible with your CUDA version.

ZeroASIC commented 8 years ago

i just got it to compile by adding -D_FORCE_INLINES to line 394 of the makefile: NVCC_GENCODE = -D_FORCE_INLINES -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_50,code=\"sm_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\" all: cpuminer-config.h

KlausT commented 8 years ago

Looks like CUDA 7.5 is generally broken. CUDA 6.5 works without errors, but is not as fast for Pascal cards. Since Nvidia has released CUDA 8 now, I will test this.

KlausT commented 8 years ago

ok, I have tested CUDA 8 now. Works great, no validation errors. Using CUDA 8 is recommended now, at least for Maxwell and Pascal cards.

ceozero commented 8 years ago

ccminer-cryptonight is not the cudart32_80.dll... where is the cudart32_80.dll? thank you.

KlausT commented 8 years ago

the dll is build into the exe It should work without it