ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.97k stars 2.28k forks source link

Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device #2126

Open metrickz opened 3 years ago

metrickz commented 3 years ago

Hello,

I just downloaded Ethminer on my new mining rig with 3 RTX 3060 Ti and got a Cuda Error.

This is what shows up in the terminal:

C:\Users\Miner1\Desktop\Ethminer>ethminer -P stratum1+tcp://0x8fac3880678E130D0ff71E1c9904b7E7813F37cB.Miner1@eu1.ethermine.org:4444 --report-hashrate

ethminer 0.19.0-alpha.0 Build: windows/release/msvc

Unrecognized platform Intel(R) OpenCL i 12:25:21 main Configured pool eu1.ethermine.org:4444 i 12:25:21 Selected pool eu1.ethermine.org:4444 i 12:25:21 Stratum mode : Eth-Proxy compatible i 12:25:21 Established connection to eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:4444] i 12:25:21 Spinning up miners... cu 12:25:21 cuda-0 Using Pci Id : 01:00.0 GeForce RTX 3060 Ti (Compute 8.6) Memory : 8.00 GB cu 12:25:21 cuda-1 Using Pci Id : 02:00.0 GeForce RTX 3060 Ti (Compute 8.6) Memory : 8.00 GB cu 12:25:21 cuda-2 Using Pci Id : 04:00.0 GeForce RTX 3060 Ti (Compute 8.6) Memory : 8.00 GB i 12:25:21 Epoch : 389 Difficulty : 4.00 Gh i 12:25:21 Job: cb541fa9... block 11685447 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:4444] i 12:25:23 Job: 4a075086... block 11685448 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:4444] cu 12:25:24 cuda-0 Generating DAG + Light : 4.10 GB cu 12:25:24 cuda-2 Generating DAG + Light : 4.10 GB cu 12:25:24 cuda-1 Generating DAG + Light : 4.10 GB cu 12:25:25 cuda-2 Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 04:00.0 cu 12:25:25 cuda-2 Mining suspended ... cu 12:25:25 cuda-0 Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 01:00.0 cu 12:25:25 cuda-0 Mining suspended ... cu 12:25:25 cuda-1 Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 02:00.0 cu 12:25:25 cuda-1 Mining suspended ... m 12:25:26 0:00 A0 0.00 h - cu0 0.00, cu1 0.00, cu2 0.00 i 12:25:26 Job: b5a83276... block 11685448 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:4444] i 12:25:30 Job: 81eb3825... block 11685448 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:4444] m 12:25:31 0:00 A0 0.00 h - cu0 0.00, cu1 0.00, cu2 0.00 i 12:25:32 main Got interrupt ... i 12:25:32 main Disconnected from eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:4444] i 12:25:32 main Shutting down miners... i 12:25:33 main Terminated!

System: Windows 10 Pro 64bit 8GB DDR3 RAM 3x RTX 3060 Ti

Tried it with CUDA 10 & 11 and Ethminer v18stable and the latest version (CUDA 10 both)

1rabbit commented 3 years ago

I have the same issue Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 01:00.0 with my 3070 on windows 10 pro, I tried https://ci.appveyor.com/project/ethereum-mining/ethminer, no luck.

I'm trying to compile it with cmake -DCOMPUTE=86 as seen here but I'm not experienced enough to make it work https://www.reddit.com/r/EtherMining/comments/j69kal/ethminer_not_running_on_rtx_3090_need_advice/

Thanks

Gimel-ai commented 3 years ago

You can check my compiled repo with RTX 30 series and cuda 11.1 support here - https://github.com/technopremium/ethminer_RTX30series

jean-m-cyr commented 3 years ago

NOTE: This above recommended repo violates the terms of GPL V3 licensing and is not recommended. It is a directly derived from Ethminer but publishes no source code as required.

Try this one instead: https://github.com/no-fee-ethereum-mining/nsfminer.git

piotr-dobrogost commented 3 years ago

@jean-m-cyr Thanks for keeping ethminer alive in your repo. Just downloaded your binary for Ubuntu and I'm running it on Fedora 33 with the mix of GTX 1070 and RTX 3070. Will donate eth to your address. Would you mind explaining what is the source of the error raised in this issue?

(returning to mining after one year break)

jean-m-cyr commented 3 years ago

Mostly its dependencies have not been kept up to date.

morzsa11 commented 3 years ago

I have the same issue. Win10 RTX3080.

ronesik commented 3 years ago

Has this been updated by anyone so that it's working?

rilexus commented 3 years ago

Win10 RTX3080 same issue

JoroBG commented 3 years ago

still not resolved? these are my first attempts to mine, pretty frustrating

piotr-dobrogost commented 3 years ago

@JoroBG What have you done to help resolve this? Maybe you have paid someone to resolve this? Neither the latter nor the former? Well, pretty frustrating must I say.

phdmd commented 3 years ago

same issue, me too. win 10, rtx3060ti

Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 01:00.0

I tried cuda 11.3, 10.0. still not solved.

ronesik commented 3 years ago

I increased virtual memory mins and maxs. Min 1.5 x installed memory amount and max 2 x installed memory amount. So my new amounts were 32 (Gb installed memory) x 1024 x 1.5 = 49152 MB for min, and my new max was 32 x 1024 x 2 = 65536 MB.

I also installed 2 memory sticks on the qualified vendor list for my mobo. B250 mining expert. I no longer get the error message.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: phdmd @.> Sent: Monday, April 19, 2021 11:18:28 PM To: ethereum-mining/ethminer @.> Cc: ronesik @.>; Comment @.> Subject: Re: [ethereum-mining/ethminer] Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device (#2126)

same issue, me too. win 10, rtx3060ti

Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 01:00.0

I tried cuda 11.3, 10.0. still not solved.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fethereum-mining%2Fethminer%2Fissues%2F2126%23issuecomment-822942865&data=04%7C01%7C%7C007c402187bc46cda74108d903aaf86e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637544855111139345%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=rNjpO4mGFT%2FR77NdL7%2BMSy6LldwIP5oPNQZRrImIMDI%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATPCMI6YXPUMQ4JBWDY7TCTTJTXAJANCNFSM4WIQ2SLQ&data=04%7C01%7C%7C007c402187bc46cda74108d903aaf86e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637544855111139345%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SeAVl02qAm%2F42Oq53p7NrsjXhbkYAWpx0znvBuYwNz4%3D&reserved=0.

morzsa11 commented 3 years ago

@ronesik Congrats! Is it not a little bit expensive solution? 32 GB of RAM and 65GB virtual memory? It's good to see it work, but normally shouldn't require such a lot of memory.

Anyway. I saw that several people +1-ed this issue. I just want to tell the community that I couldn't solve this. Therefore tried to download the source and compile it myself. After a lot of struggle I finally managed (see my issue if interested: https://github.com/ethereum-mining/ethminer/issues/2208). Monitored the mining performance of ethminer for a week and found that despite being dev-fee free it made me 20%(!) less income in a week compared to phoenix miner (same pool, same machine, same 1week run) All inn all: I think it doesn't worth the effort.

ronesik commented 3 years ago

I tend to hit things with a big stick...

I think the key is the 1.5x min vram and 2x max vram numbers. I haven’t tested it out but will do it later tonight with one stick of memory and adjust accordingly.

I like your solution though...

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: @.> Sent: April 20, 2021 1:45 PM To: @.> Cc: @.>; @.> Subject: Re: [ethereum-mining/ethminer] Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device (#2126)

@ronesikhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fronesik&data=04%7C01%7C%7C5f9e4054e47241b3033b08d904240962%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545375081190110%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ZPXeomk2m5PNnLtc7l10l%2BkSJuTN8WYvXip9XcRFqJQ%3D&reserved=0 Congrats! Is it not a little bit expensive solution? 32 GB of RAM and 65GB virtual memory? It's godd to see it work, but normally shouldn't require such a lot of memory.

Anyway. I saw that several people +1-ed this issue. I just want to tell the community that I couldn't solve this. Therefore tried to download the source and compile it myself. After a lot of struggle I finally managed (see my issue if interested: #2208https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fethereum-mining%2Fethminer%2Fissues%2F2208&data=04%7C01%7C%7C5f9e4054e47241b3033b08d904240962%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545375081200109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=OGvSN77apoXift0U4rjYqunSthjbmMUW9tB%2FQcPB3AE%3D&reserved=0). Monitored the mining performance of ethminer for a week and found that despite being dev-fee free it made me 20%(!) less income in a week compared to phoenix miner (same pool, same machine, same 1week run) All inn all: I think it doesn't worth the effort.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fethereum-mining%2Fethminer%2Fissues%2F2126%23issuecomment-823476168&data=04%7C01%7C%7C5f9e4054e47241b3033b08d904240962%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545375081200109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9mQuuAqO6a5PHmUx4YMTIpNSNtGTDEesRjvCBgM4mYY%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATPCMIYO754M5HUYO5HTH33TJW4SFANCNFSM4WIQ2SLQ&data=04%7C01%7C%7C5f9e4054e47241b3033b08d904240962%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545375081210106%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3HA4vMczweXhFDOJKmVEMlw3%2Bgfc9rXOKM%2Fqgg8TOjU%3D&reserved=0.

rdeguara commented 3 years ago

After gettng the same error I have downloaded nsfminer version as source code supplied. I will compile the version once I have time but in the meantime am testing the provided executable. So far it is mining at 47.5MH/s and occasionally jumps up to 51MH/s. I have the nvidia dev driver connected to 2miners and it is so far running comparable to lolminer without the fees.

ShawnLau11 commented 3 years ago

Same here, Windows 10, RTX3070, Cuda 11.3 cu 15:12:15 cuda-0 Unexpected error CUDA error in func set_constants at line 112 invalid device symbol on CUDA device 01:00.0 cu 15:12:15 cuda-0 Mining suspended ...

S33G commented 3 years ago

Same here RTX3080 Cuda 10

RadoDK commented 3 years ago

Same with My one rtx 3090

troscoe63 commented 2 years ago

Same issue: Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 01:00.0. RTX 3080 laptop NVIDIA GeForce RTX 3080 Laptop GPU (Compute 8.6) Memory : 16.00 GB

encoderlee commented 2 years ago

image insert list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_86,code=sm_86") into file libethash-cuda/CMakeLists.txt then rebuild to support RTX30xx gpu