YoRyan / nuxhash

A NiceHash cryptocurrency mining client for Linux.
GNU General Public License v3.0
264 stars 164 forks source link

CUDA error 'out of memory' in func 'run' line 768 #43

Open Akick opened 5 years ago

Akick commented 5 years ago

Hi. I have cuda error when I want to try all variants of daggerhashimoto algorithms. Fedora 30, GTX 1050Ti, 32 Gb Ram, About 100 Gb free on disk.

$ nuxhashd --show-mining 2019-10-29 16:49:14,535 INFO: Querying NiceHash for miner connection information... 2019-10-29 16:49:14,538 DEBUG: Starting new HTTPS connection (1): api2.nicehash.com:443 2019-10-29 16:49:14,726 DEBUG: https://api2.nicehash.com:443 "GET /main/api/v2/public/simplemultialgo/info/ HTTP/1.1" 200 None 2019-10-29 16:49:14,729 DEBUG: Starting new HTTPS connection (1): api2.nicehash.com:443 2019-10-29 16:49:14,834 DEBUG: https://api2.nicehash.com:443 "GET /main/api/v2/mining/algorithms/ HTTP/1.1" 200 None 2019-10-29 16:49:14,848 DEBUG: =========================== www.nicehash.com ========================= 2019-10-29 16:49:14,848 DEBUG: Excavator v1.5.14a GPU Miner for NiceHash. 2019-10-29 16:49:14,848 DEBUG: Copyright (C) 2018 NiceHash. All rights reserved. 2019-10-29 16:49:14,848 DEBUG: =========================== www.nicehash.com ========================= 2019-10-29 16:49:14,848 DEBUG: Build time: 2018-12-07 10:21:06+01:00 2019-10-29 16:49:14,848 DEBUG: Build number: 3897564716 2019-10-29 16:49:14,848 DEBUG: [16:49:14][0x00007f74a825cc00][info] Log started 2019-10-29 16:49:14,850 DEBUG: [16:49:14][0x00007f74a825cc00][info] core | Found CUDA device: GeForce GTX 1050 Ti 2019-10-29 16:49:14,922 DEBUG: [16:49:14][0x00007f74a825cc00][info] api | Listening on 127.0.0.1:34599 2019-10-29 16:49:14,922 DEBUG: [16:49:14][0x00007f74a825cc00][info] core | Initialized! 2019-10-29 16:49:14,924 DEBUG: Starting new HTTPS connection (1): api2.nicehash.com:443 2019-10-29 16:49:15,005 DEBUG: [16:49:15][0x00007f74a825cc00][info] Connected to nhmp.eu.nicehash.com:3200 2019-10-29 16:49:15,044 DEBUG: [16:49:15][0x00007f74a122f700][info] nhmp | Subscribed 2019-10-29 16:49:15,133 DEBUG: https://api2.nicehash.com:443 "GET /main/api/v2/public/simplemultialgo/info/ HTTP/1.1" 200 None 2019-10-29 16:49:15,135 INFO: Assigning nvidia_GPU-4b28e028-129d-86f1-0e25-56207fadd686 to excavator_daggerhashimoto_decred (0.0 mBTC/day) 2019-10-29 16:49:15,174 DEBUG: [16:49:15][0x00007f74a122f700][info] nhmp | daggerhashimoto | add success 2019-10-29 16:49:15,208 DEBUG: [16:49:15][0x00007f74a122f700][info] net | daggerhashimoto | New job '000000002883f2ce', diff=2 2019-10-29 16:49:15,235 DEBUG: [16:49:15][0x00007f746ffff700][info] wrkr0-0 | Algorithm: CUDA-daggerhashimoto_decred parameters: R_0:R_1=8:2,P=0 2019-10-29 16:49:15,236 DEBUG: [16:49:15][0x00007f746ffff700][info] wrkr0-0 | Mining with high intensity 2019-10-29 16:49:15,283 DEBUG: [16:49:15][0x00007f74a122f700][info] nhmp | decred | add success 2019-10-29 16:49:15,283 DEBUG: [16:49:15][0x00007f74a122f700][info] net | decred | New job '00000000a3b51e57', diff=4 2019-10-29 16:49:15,288 DEBUG: [16:49:15][0x00007f746ffff700][info] job-daggerhashimoto | Generating DAG cache (0d96b89b2001e463)... 2019-10-29 16:49:19,641 DEBUG: [16:49:19][0x00007f746ffff700][info] job-daggerhashimoto | DAG cache (0d96b89b2001e463) generation completed (4341ms) 2019-10-29 16:49:19,703 DEBUG: [16:49:19][0x00007f746ffff700][fatal] wrkr0-0 | CUDA error 'out of memory' in func 'run' line 768 2019-10-29 16:49:19,703 DEBUG: [16:49:19][0x00007f74a825cc00][info] Shutting down 2019-10-29 16:49:19,703 DEBUG: [16:49:19][0x00007f74a825cc00][info] api | Closing

cyprusglobe commented 5 years ago

@Akick your issue could possibly be due to this

https://github.com/pjreddie/darknet/issues/304#issue-273236641

I hope this helps

jspanchu commented 4 years ago

Since you have a GPU with exactly 4GB of memory, the desktop composition is taking up some amount of VRAM. So, let your integrated graphics card (if your CPU has it) do the desktop rendering. Try fix from here