ethereum-mining / ethminer

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

-H error occurred, Jetson Xavier compiled, and mining error #1997

Open kivvi3412 opened 4 years ago

kivvi3412 commented 4 years ago

Nvidia Jetson Xavier using AN AARCH64 CPU was compiled with an error The build process:

git clone https://github.com/ethereum-mining/ethminer git submodule update --init --recursive mkdir build cd build cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF #USE CUDA NOT OPENCL sudo make install

issue1:Error compiling input -H parameter

ztfot@Xavier:~/Desktop/ETH/ethminer/build$ ethminer -H

ethminer 0.19.0-alpha.0-8+commit.08f8697c
Build: linux/release/gnu
Error: --help-ext: 1 required TEXT in {api,con,cu,env,misc,test} missing

issue2:There's no calculation and I don't know how to fill my wallet

        [Unexpected error CUDA error]
ztfot@Xavier:~/Desktop/ETH/ethminer/build$ ethminer -U -P stratum+tcp://ztfot.eth1@en.huobipool.com:1800
ethminer 0.19.0-alpha.0-8+commit.08f8697c
Build: linux/release/gnu

 i 13:54:44 ethminer Configured pool en.huobipool.com:1800
 i 13:54:44 ethminer Selected pool en.huobipool.com:1800
 i 13:54:44 ethminer Stratum mode : Stratum
 i 13:54:44 ethminer Established connection to en.huobipool.com [39.97.23.93:1800]
 i 13:54:44 ethminer Spinning up miners...
cu 13:54:44 cuda-0   Using Pci Id : 00:00.0 Xavier (Compute 7.2) Memory : 15.45 GB
 i 13:54:44 ethminer Authorized worker ztfot.eth1
 i 13:54:44 ethminer Epoch : 342 Difficulty : 8.59 Gh
 i 13:54:44 ethminer Job: 4a0e00f7… en.huobipool.com [39.97.23.93:1800]
cu 13:54:47 cuda-0   Generating DAG + Light : 3.73 GB
**cu 13:54:48 cuda-0   Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 00:00.0**
cu 13:54:48 cuda-0   Mining suspended ...
 m 13:54:49 ethminer 0:00 A0 0.00 h - cu0 0.00
 i 13:54:54 ethminer Job: 00be8cb1… en.huobipool.com [39.97.23.93:1800]
 m 13:54:54 ethminer 0:00 A0 0.00 h - cu0 0.00
 i 13:54:54 ethminer Job: d407c8ba… en.huobipool.com [39.97.23.93:1800]
 i 13:54:56 ethminer Job: d7749311… en.huobipool.com [39.97.23.93:1800]
 i 13:54:56 ethminer Job: d8ab8418… en.huobipool.com [39.97.23.93:1800]
 m 13:54:59 ethminer 0:00 A0 0.00 h - cu0 0.00

Hope someone can see it and reply. Thank you!!!!

CedricSchmeits commented 3 years ago

I have the same issue:

cu 10:42:55 cuda-0   Using Pci Id : 00:00.0 Xavier (Compute 7.2) Memory : 11.75 GB
 m 10:43:02 ethminer 0:00 A0 0.00 h - cu0 0.00
cu 10:43:02 cuda-0   Generating DAG + Light(on GPU) : 3.90 GB
cu 10:43:04 cuda-0   Unexpected error CUDA error in func set_constants at line 110 invalid device symbol on CUDA device 00:00.0
cu 10:43:04 cuda-0   Mining suspended ...
kivvi3412 commented 3 years ago

I have the same issue:

cu 10:42:55 cuda-0   Using Pci Id : 00:00.0 Xavier (Compute 7.2) Memory : 11.75 GB
m 10:43:02 ethminer 0:00 A0 0.00 h - cu0 0.00
cu 10:43:02 cuda-0   Generating DAG + Light(on GPU) : 3.90 GB
cu 10:43:04 cuda-0   Unexpected error CUDA error in func set_constants at line 110 invalid device symbol on CUDA device 00:00.0
cu 10:43:04 cuda-0   Mining suspended ...

I think this is an issue with CUDA, but I've seen people on the Internet successfully implement it with TX2, currently Jetpack4.4, CUDA10, and I don't know if it will be possible when CUDA and JetPack are updated for Jetson Xavier

gorghino commented 3 years ago

I also got Unexpected error CUDA error in func set_constants at line 110 invalid device symbol on CUDA device 00:00.0 on a Jetson Xavier AGX and a Jetson Xavier NX (both with Cuda 10.2), but I can run ethminer on a TX2 Jetpack 4.4 without errors.

AndreaLanfranchi commented 3 years ago

@ztfot

issue 1 is not an issue. If you want ethminer generic help use -h. If you want specific help for a given matter use capital H followed by one of the topics eg. -H con will give you detailed info about connections.

issue 2 ... often happens on binary release when your cuda version is not supported by your driver version. Should be solved if you're able to build from source.