NebuTech / NBMiner

GPU Miner for ETH, RVN, BEAM, CFX, ZIL, AE, ERGO
https://nbminer.com
3.18k stars 519 forks source link

"CUDA Error: unspecified launch failure (err_no=4)" with Memory tweak mode activated #220

Open Freekers opened 3 years ago

Freekers commented 3 years ago

NBMiner crashes instantly if Memory tweak mode is activated with the following error: "CUDA Error: unspecified launch failure (err_no=4)". I have tried different memory tweak modes (from 1 to 6).

I suspect it's BIOS related, but I do not know which setting to change. 4G Decoding is enabled, PCI-e Gen is set to '2'.

Motherboard: X11SAT-F Supermicro (1.0a 04/29/2016) CPU: 8 × Intel(R) Xeon(R) CPU E3-1240L v5 @ 2.10GHz AES GPU: 2x Asus GeForce GTX 1080 8119 MB - Micron GDDR5X - vBIOS 86.04.17.00.11 nVidia Driver version: 460.39 OS: hiveos-0.6-190-stable (Ubuntu 18.04) NBMiner: 36.1

homerobono commented 3 years ago

Got any developments on this? I wanted to know more about this and maybe other CUDA errors that shows up in NBMiner.

The error occurs to me apparently when I set the MemoryTransferRateOffset too high, where it enters a cycle of restart and crash. With a little lower offset value than before, the miner crashes but starts again and works normally (and curiously very stable!) indefinitely - however the driver API is buggy at this point and I can't perform any write operation until I restart the computer.

Then I would suggest you to review your memory settings, try to lower it down and see if the problem persists.

heliosgnosis commented 3 years ago

Your problem is simple, since when do linux user's not read the readme first and foremost guy's? You cannot use ANY -mt on linux because it will install the windows only driver to speed up vram timing's, the problem was trying to install that which cannot install to which I would suspect the kernel of the OS itself shut's down the program for doing said action.

Freekers commented 3 years ago

Your problem is simple, since when do linux user's not read the readme first and foremost guy's? You cannot use ANY -mt on linux because it will install the windows only driver to speed up vram timing's, the problem was trying to install that which cannot install to which I would suspect the kernel of the OS itself shut's down the program for doing said action.

Not sure what you're talking about. This is straight from the readme:

`--mt, --memory-tweak Memory timings optimize for Nvidia GDDR5 & GDDR5X gpus. range [1-6]. Higher value equals higher hashrate. Individual value can be set via comma seperated list. Power limit may need to be tuned up to get more hashrate. Higher reject share ratio can happen if mining rig hits high temperature, set lower value of -mt can reduce reject ratio. Under windows, a custom driver need to be installed when using -mt, can installed manually by option --driver, or run nbminer.exe with admin privilege to perform auto-install. Under linux, admin priviledge is needed to run, sudo ./nbminer -mt x. OhGodAnETHlargementPill is not needed anymore if -mt is enabled when mining on 1080 & 1080ti GPUs.

Read the last line. It specifically says Linux.