cbuchner1 / CudaMiner

a CUDA accelerated litecoin mining application based on pooler's CPU miner
Other
687 stars 304 forks source link

cudaminer can't detect/restart when video card driver crashes #138

Closed drazisil closed 8 years ago

drazisil commented 10 years ago

Instead it loops forever with

GPU #0: cudaError 30 (unknown error) calling 'cudaStreamQu ery(context_streams[stream][thr_id])' (D:/Christian/Documents/Visual Studio 2010 /Projects/CudaMiner/salsa_kernel.cu line 958)

sephtin commented 10 years ago

See the previously closed issues: https://github.com/cbuchner1/CudaMiner/issues/109 and https://github.com/cbuchner1/CudaMiner/issues/104

It happens when driver crashes. Possible work-arounds are to try limiting PCIE slot to x2, and lowering clocks (if you're overclocked)...

I have lowered my overclock to the point where it only does this ~once a week. I get an alert, and I remote to the system and stop and re-start cudaminer.

HTH

drazisil commented 10 years ago

is there no way for it to detect and restart on its own?

On Sun, May 11, 2014 at 2:58 PM, sephtin notifications@github.com wrote:

See the previously closed issues:

109 https://github.com/cbuchner1/CudaMiner/issues/109

and

104 https://github.com/cbuchner1/CudaMiner/issues/104

It happens when driver crashes. Possible work-arounds are to try limitin PCIE slot to x2, and lowering clocks (if you're overclocked)...

I have lowered my overclock on mine to the point where it only does this ~once a week. I get an alert, and I remote to the system and stop and re-start cudaminer.

HTH

— Reply to this email directly or view it on GitHubhttps://github.com/cbuchner1/CudaMiner/issues/138#issuecomment-42779524 .

drazisil commented 10 years ago

Also, I'm not overclocking it and I don't know what "limiting PCIE slot to x2" means. My real questions is, is there was way to change the code for it to detect a driver crash and recover? Or quit so I can restart via batch?

sephtin commented 10 years ago

If you figure it out, let me know too! (and the others from the other closed issues I linked). :)

drazisil commented 10 years ago

Well, the failure line doesn't seam to match up with the source code, so I'm trying to build from scratch. I did find https://www.youtube.com/watch?v=8NtHDkUoN98 though, which may remove the need to even care, at least on windows. I'm still fighting with getting the project built though.

drazisil commented 10 years ago

I've zero luck building this, sadly

With http://support.microsoft.com/kb/2665946 my driver no longer crashes.

However, cudaminer now crashes on the following error.

[2014-05-22 14:33:41] GPU #0: cudaError 30 (unknown error) calling 'cudaStreamSy nchronize(context_streams[1][thr_id])' (D:/Christian/Documents/Visual Studio 201 0/Projects/CudaMiner/salsa_kernel.cu line 224)

That's this command: cudaDeviceReset();, which leads me to believe the driver may still be hanging.

I'm not really sure how to troubleshoot error 30, but hopefully this helps? Running driver 337.50 with a GTX 660 under win 8.1

drazisil commented 8 years ago

Closing this out of my list