CudaMiner icon indicating copy to clipboard operation
CudaMiner copied to clipboard

Cuda error while exiting CudaMiner with Ctr+c in linux

Open tachyon-ops opened this issue 12 years ago • 4 comments

Hi there!

So, I'm having a great time with CudaMiner in Fedora 19 :) the issue is when I quit the aplication. I don't actually know how to terminate it - or if there is a proper way other then Ctr+c

But when I do that, my GPU becomes unaccessible:

~]$ nvidia-smi -r -i 0 Unable to determine the PCI bus id for the target device: GPU is lost

Seams like an out of bounds memory access? Have no clue...

deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 38 -> no CUDA-capable device is detected Result = FAIL

So.. my only option to re-start cuda is by rebooting. However, my PC is remote and rebooting is unreliable unless I have someone in there to assist me manually. And I cannot recover cuda from command line either ( :/ )

Anyone has bumped into such behaviour? Thanks!

tachyon-ops avatar Dec 05 '13 07:12 tachyon-ops

CudaMiner is great! I am also having a rocking good time with it, except.. that I also get crashes on exit (ctrl-C)!

The crashes take the whole system down, not just the GPU cards.

  • Is there any other way to cleanly shut down the miner?
  • Any settings which avoid crashes? (Autotune suggested F128x8 -- how to lower intensity: Reduce blocks? Warps?)

(Full disclosure: I built with CUDA 4.5, which proceeded soothly... can that be the issue?)

Thanks!

Telsa M2090 RHEL 6.4 (2.6.32) CUDA 4.5

hayimd avatar Dec 12 '13 20:12 hayimd

the Windows specific code has an added CTRL-C handler that tries to initiate an orderly shutdown. You could try to install a SIGBRK / SIGINT handler for Linux that does the same kind of cleanup.

2013/12/12 hayimd [email protected]

CudaMiner is great! I am also having a rocking good time with it, except.. that I also get crashes on exit (ctrl-C)!

The crashes take the whole system down, not just the GPU cards.

  • Is there any other way to cleanly shut down the miner?
  • Any settings which avoid crashes? (Autotune suggested F128x8 -- how would I tone that down?)

(Full disclosure: I built with CUDA 4.5, which proceeded soothly... can that be the issue?)

Thanks!

Telsa M2090 RHEL 6.4 (2.6.32) CUDA 4.5

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

cbuchner1 avatar Dec 12 '13 20:12 cbuchner1

Christian,

Thanks for an awesome program and a fast reply! Unfortunately I think it might be beyond my understanding.

Does the linux code not include an orderly shutdown, or is it just not initiated by pressing ctrl-C? So then, would we need to adapt the windows shutdown routine for the linux version, or just have sigint trigger it?

:/

hayimd avatar Dec 12 '13 21:12 hayimd

I'm having this problem in Windows 7 as well. Just uploaded latest stable for LTC mining and... When you break out of it after running for sometime through command prompt or via an internal secondary system running it through java it after about 3 seconds freezes the display and after 10 seconds it's rebooting black screen fades off in about 250 ms.

GottaGetmedat avatar Feb 11 '14 12:02 GottaGetmedat