cbuchner1 / ccminer

Christian Buchner's & Christian H.'s CUDA miner project
Other
273 stars 1.7k forks source link

GPU #0: FATAL: failed to allocate device memory for long state #49

Open amainiero opened 7 years ago

amainiero commented 7 years ago

I'm running a 1080 with a bat file containing:

ccminer -q -o stratum+tcp://xmr-eu1.nanopool.org:14444 -u .0. -p x PAUSE

When I launch, it runs through:

C:\Users... ... ... ... ... donations addresses ...

[2017-09-13 17:09:14] Using JSON-RPC 2.0 [2017-09-13 17:09:14] 1 miner threads started, using 'cryptonight' algorithm. [2017-09-13 17:09:14] Starting Stratum on stratum+tcp://xmr-eu1.nanopool.org:14444 [2017-09-13 17:09:14] GPU #0: GeForce GTX 1080 (20 SMX), using 40 blocks of 8 threads [2017-09-13 17:09:15] GPU #0: FATAL: failed to allocate device memory for long state

C:\Users\Spoon\Desktop\xmr video>PAUSE

How can I fix this error? I went through the help and saw no way to set a block count or memory level.

amainiero commented 7 years ago

I was since recommended to try -l AxB (for A is threads and B is blocks). My CPU requires a multiple of 20, making my only options 20 and 40, and A must be between 4 and 8 or else it wont run. Anyway, I tried -l 4x20, -l 5x20, etc; and all of them give the same issue.