Open javahaxxor opened 3 years ago
@StefanOberhumer it looks like you might know why this happens, it's in ethash_cuda_miner_kernel.cu
I could build it from source and it runs fine
You can check my compiled repo with RTX 30 series and cuda 11.1 support here - https://github.com/technopremium/ethminer_RTX30series
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
@Gimel-ai thanks but I completely agree with @jean-m-cyr. If you managed to add Cuda 11.1 support, congrats, and you should do a pull request to the main repo. I could then build it myself
@jean-m-cyr what's the difference between nsfminer and ethminer?
@javahaxxor Etheminer has been neglected due to lack of participation on the part of developers, testers, contributors in general. Over time it's garnered bugs and incompatibilities with newer driver/OS/hardware releases. My design philosophy favors clean, simple, and efficient implementation over tons of bells and whistles. That's were you'll see differences. Unused, frivolous, or just plain nonsense parameters are gone, some of them replaced with automation. The console log is de-cluttered by removing most non mining pertinent info, the time-of-day on every line for example.
In short: accumulated bug fixes, improved mining algorithm, a project not blocked by lack of participation but that remains open sourced.
Cool. I'd love to try it and start contributing
I could build it from source and it runs fine
Hi @javahaxxor, I'm facing the same issue with the exe i build from source. May I know which commit u build from?
Oh, but that was a long time ago.. I've since then found the compiled binary 😁. Sorry, I can't remember what I did to get it to work. Have you checked the step by step build doc?
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
@encoderlee Hi, thanks for the advice, would this work with Nvidia Tesla V100? Also, I'm following the steps to build it but it's failing with the below error. Could be an outdated package. So I was wondering if someone had forked and corrected this on another repo. Thanks.
gmake[2]: [CMakeFiles/Boost.dir/build.make:99: Boost-prefix/src/Boost-stamp/Boost-download] Error 1 gmake[1]: [CMakeFiles/Makefile2:83: CMakeFiles/Boost.dir/all] Error 2 gmake: *** [Makefile:91: all] Error 2
[hunter FATAL ERROR ] Build step failed (dir: /home/fady/.hunter/_Base/4b894e1/a5c138f/cb395ce/Build/Boost [hunter FATAL ERROR ] [Directory:/home/fady/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/projects/Boost]
CMake Error at /home/fady/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message): Call Stack (most recent call first): /home/fady/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page) /home/fady/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/modules/hunter_download.cmake:614 (hunter_fatal_error) /home/fady/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/projects/Boost/hunter.cmake:381 (hunter_download) /home/fady/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include) CMakeLists.txt:64 (hunter_add_package)
-- Configuring incomplete, errors occurred! See also "/home/fady/ethminer/build/CMakeFiles/CMakeOutput.log".
Answering my own question, yes it does, as shown below. Thanks @encoderlee
nvidia-smi
Sun Jan 23 15:51:40 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.46 Driver Version: 495.46 CUDA Version: 11.5 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Tesla V100-SXM2... Off | 00000000:00:1E.0 Off | 0 |
| N/A 56C P0 205W / 300W | 10307MiB / 16160MiB | 100% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 752 G /usr/lib/xorg/Xorg 4MiB | | 0 N/A N/A 1715 C ./ethminer 10300MiB | +-----------------------------------------------------------------------------+
I've forked this repo and added the above mentioned fix as well as updating build doc with a workaround for Boost dependency download timeout. You can find my fork here https://github.com/fadyanwar/ethminer/blob/1a713e4d879bcc4187f2bce66330a52e050018a0/docs/BUILD.md
Describe the bug I get this error when running the binary on both Linux and Windows ethminer 0.19.0-alpha.0 Build: windows/release/msvc
X 19:10:04 main Failed to obtain all required NVML function pointers X 19:10:04 main NVIDIA hardware monitoring disabled i 19:10:04 main Configured pool eth-eu1.nanopool.org:9999 i 19:10:04 Selected pool eth-eu1.nanopool.org:9999
i 19:10:05 Stratum mode : EthereumStratum/1.0.0 (NiceHash)
i 19:10:05 Established connection to eth-eu1.nanopool.org [163.172.162.51:9999]
i 19:10:05 Spinning up miners...
cu 19:10:05 cuda-0 Using Pci Id : 08:00.0 GeForce RTX 3060 Ti (Compute 8.6) Memory : 8.00 GB
i 19:10:05 Extranonce set to 918e
i 19:10:05 Authorized worker 0x43a52A2c160E073e648A6875E6807b1B1E5F5fA4
i 19:10:05 Epoch : 388 Difficulty : 10.00 Gh
i 19:10:05 Job: 73c3d370... eth-eu1.nanopool.org [163.172.162.51:9999]
i 19:10:07 Job: bb887925... eth-eu1.nanopool.org [163.172.162.51:9999]
cu 19:10:07 cuda-0 Generating DAG + Light : 4.09 GB
cu 19:10:07 cuda-0 Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 08:00.0
cu 19:10:07 cuda-0 Mining suspended ...
To Reproduce Steps to reproduce the behavior: ./ethminer -U -Z 1 ethminer 0.19.0-alpha.0 Build: linux/release/gnu
i 23:09:54 ethminer Selected pool localhost:0 i 23:09:54 ethminer Established connection to localhost:0 i 23:09:54 ethminer Spinning up miners... cu 23:09:54 cuda-0 Using Pci Id : 08:00.0 GeForce RTX 3060 Ti (Compute 8.6) Memory : 7.79 GB i 23:09:54 sim Epoch : 0 Difficulty : 4.29 Gh i 23:09:54 sim Job: 1cce3370… block 1 localhost:0 cu 23:09:55 cuda-0 Generating DAG + Light : 1.02 GB cu 23:09:55 cuda-0 Unexpected error CUDA error in func set_constants at line 125 invalid device symbol on CUDA device 08:00.0 cu 23:09:55 cuda-0 Mining suspended ... m 23:09:59 ethminer 0:00 A0 0.00 h - cu0 0.00 m 23:10:04 ethminer 0:00 A0 0.00 h - cu0 0.00 m 23:10:09 ethminer 0:00 A0 0.00 h - cu0 0.00
./ethminer -U -M 0 ethminer 0.19.0-alpha.0 Build: linux/release/gnu
i 23:12:02 ethminer Selected pool localhost:0 i 23:12:02 ethminer Established connection to localhost:0 i 23:12:02 ethminer Spinning up miners... cu 23:12:02 cuda-0 Using Pci Id : 08:00.0 GeForce RTX 3060 Ti (Compute 8.6) Memory : 7.79 GB i 23:12:02 sim Epoch : -1 Difficulty : 4.29 Gh i 23:12:02 sim Job: 41b64834… block 0 localhost:0 X 23:12:02 cuda-0 Exception thrown in Worker thread: GPU error: CUDA error in func set_header at line 165 invalid device symbol m 23:12:07 ethminer 0:00 A0 0.00 h - cu0 0.00 m 23:12:12 ethminer 0:00 A0 0.00 h - cu0 0.00
./ethminer -U -P stratum2+tcp://XXXXX@eth-eu1.nanopool.org:9999/ ethminer 0.19.0-alpha.0 Build: linux/release/gnu
i 23:43:35 ethminer Configured pool eth-eu1.nanopool.org:9999 i 23:43:35 ethminer Selected pool eth-eu1.nanopool.org:9999 i 23:43:35 ethminer Stratum mode : EthereumStratum/1.0.0 (NiceHash) i 23:43:35 ethminer Established connection to eth-eu1.nanopool.org [51.15.89.69:9999] i 23:43:35 ethminer Spinning up miners... cu 23:43:35 cuda-0 Using Pci Id : 08:00.0 GeForce RTX 3060 Ti (Compute 8.6) Memory : 7.79 GB i 23:43:35 ethminer Extranonce set to 0337 i 23:43:35 ethminer Authorized worker 0x43a52A2c160E073e648A6875E6807b1B1E5F5fA4 i 23:43:35 ethminer Epoch : 388 Difficulty : 10.00 Gh i 23:43:35 ethminer Job: 795a2e94… eth-eu1.nanopool.org [51.15.89.69:9999] cu 23:43:37 cuda-0 Generating DAG + Light : 4.09 GB cu 23:43:37 cuda-0 Unexpected error CUDA error in func set_constants at line 125 invalid device symbol on CUDA device 08:00.0 cu 23:43:37 cuda-0 Mining suspended ... i 23:43:38 ethminer Job: 9a8836b9… eth-eu1.nanopool.org [51.15.89.69:9999] m 23:43:40 ethminer 0:00 A0 0.00 h - cu0 0.00 i 23:43:40 ethminer Job: 44b997e5… eth-eu1.nanopool.org [51.15.89.69:9999] i 23:43:43 ethminer Job: c49c01d1… eth-eu1.nanopool.org [51.15.89.69:9999] m 23:43:45 ethminer 0:00 A0 0.00 h - cu0 0.00 i 23:43:46 ethminer Job: 3ccd336d… eth-eu1.nanopool.org [51.15.89.69:9999] i 23:43:49 ethminer Job: 9f8776c1… eth-eu1.nanopool.org [51.15.89.69:9999] m 23:43:50 ethminer 0:00 A0 0.00 h - cu0 0.00 i 23:43:50 ethminer Job: 9842c080… eth-eu1.nanopool.org [51.15.89.69:9999] i 23:43:54 ethminer Job: efea3627… eth-eu1.nanopool.org [51.15.89.69:9999] m 23:43:55 ethminer 0:00 A0 0.00 h - cu0 0.00 i 23:43:56 ethminer Job: 05f09fdd… eth-eu1.nanopool.org [51.15.89.69:9999] i 23:43:59 ethminer Job: f6ef1749… eth-eu1.nanopool.org [51.15.89.69:9999] m 23:44:00 ethminer 0:00 A0 0.00 h - cu0 0.00 i 23:44:02 ethminer Job: fdf70144… eth-eu1.nanopool.org [51.15.89.69:9999] m 23:44:05 ethminer 0:00 A0 0.00 h - cu0 0.00 i 23:44:05 ethminer Job: 6de76414… eth-eu1.nanopool.org [51.15.89.69:9999] i 23:44:05 ethminer Job: c1a2cb8d… eth-eu1.nanopool.org [51.15.89.69:9999] i 23:44:07 ethminer Job: 7cb3c2d2… eth-eu1.nanopool.org [51.15.89.69:9999] i 23:44:07 ethminer Job: 02c9c9fd… eth-eu1.nanopool.org [51.15.89.69:9999] m 23:44:10 ethminer 0:00 A0 0.00 h - cu0 0.00 i 23:44:10 ethminer Job: 36567551… eth-eu1.nanopool.org [51.15.89.69:9999]
Expected behavior A clear and concise description of what you expected to happen.
Screenshots (Optional)
Environment (please complete the following information):
Additional context Add any other context about the problem here. ethminer 0.18.0 Build: linux/release/gnu
Unrecognized platform Portable Computing Language Id Pci Id Type Name CL Total Memory Cl Max Alloc Cl Max W.Grp
0 08:00.0 Gpu GeForce RTX 3060 Ti Yes 7.79 GB 1.95 GB 1024.00 B
Unrecognized platform Portable Computing Language Id Pci Id Type Name CUDA SM CL Total Memory Cl Max Alloc Cl Max W.Grp
0 08:00.0 Gpu GeForce RTX 3060 Ti Yes 8.6 Yes 7.79 GB 1.95 GB 1024.00 B