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

Jetson Xavier NX usable? #2158

Open MerlinBrasil opened 3 years ago

MerlinBrasil commented 3 years ago

I've been searching high and low for an effective miner to use for the Jetson Xavier NX.

Is ethminer optimized for this card? Either Linux or Windows would be fine.

With such a low power draw (15 V) I'll be using 4 or 8 cards to complete the rig.

Thanks, Merlin

jean-m-cyr commented 3 years ago

Some time ago I managed to get Ethminer to build and run on the Jetson nano. A word of advice: Xavier will make a poor mining platform. It's CUDA cores have no local memory and rely on the host's memory accessing it via PCIe bridge. Very slow.

MerlinBrasil commented 3 years ago

Thanks, Jean Disappointing news, but very good to know. ;) Best, Merlin

MerlinBrasil commented 3 years ago

Jean, I had one more question for you. Obviously the Nano and the Xavier NX are different. Why do you believe the results would be equally disappointing? The 15V compared to normal 120V can be factored in

jean-m-cyr commented 3 years ago

They both share the same memory architecture, namely no high speed memory directly connected to the CUDA cores. This is not a problem if computations can be kept to internal CUDA core registers. Ethash requires heavy access to a little over 4GB (and growing) of RAM and it all has to happen over PCIe on Jetson or Xavier.

jmtrappier commented 3 years ago

They state memory bandwidth is 51.2 Go/s (8 Go 128-bit LPDDR4x @ 51,2 Go/s), is this not fast enough ?

jean-m-cyr commented 3 years ago

That is bandwidth to the CPU, not the GPU.

jmtrappier commented 3 years ago

Hey Jean (are you french ?),

I may test on a Jetson AGX Xavier, could you provide me some information on how to use it on this hardware so I can test ?

jean-m-cyr commented 3 years ago

Last I tried, I just followed the standard cmake procedure under Ubuntu on the Jetson. I built for ARM just fine out of the box. Was limited in what it could mine since the Jetson has only 4GB of ram. The ETH DAG size alone is more than 4GB.

jmtrappier commented 3 years ago

Hello,

The AGX have more memory, reason why I would like to test it.

Will keep you updated.

On 19/02/2021 18:08:39, Jean Cyr notifications@github.com wrote: Last I tried, I just followed the standard cmake procedure under Ubuntu on the Jetson. I built for ARM just fine out of the box. Was limited in what it could mine since the Jetson has only 4GB of ram. The ETH DAG size alone is more than 4GB. — You are receiving this because you commented. Reply to this email directly, view it on GitHub [https://github.com/ethereum-mining/ethminer/issues/2158#issuecomment-782209206], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AFYSRGVQWTBNHB2FS73HUY3S72LJNANCNFSM4XUX3KYQ].

SimonTheVillain commented 3 years ago

Some time ago I managed to get Ethminer to build and run on the Jetson nano. A word of advice: Xavier will make a poor mining platform. It's CUDA cores have no local memory and rely on the host's memory accessing it via PCIe bridge. Very slow.

Nope. Actually both CPU and GPU, both access RAM via some "Memory Controller Fabric" and both can achieve the same memory bandwidth (see)

I am not even mining, somehow I ended up here because I wanted to know how fast the Xavier really is.

jean-m-cyr commented 3 years ago

Well the Nano only achieved about 50KH/S. It'll be interesting to see how the Xavier does.

jean-m-cyr commented 3 years ago

The Dagger Hashimoto hash used by ETH is intentionally memory constrained such that the relationship between hash rate and memory bandwidth is virtually linear. So, a little math,

A tuned Vega 64 GPU achieves 50MH/S at 125watts, and has a memory bandwidth of 483.8 GB/s. The Xavier memory is rated at a theoretical max. of 51GB/s, so it should deliver up to 5MH/S at 15 watts.

I'd be very surprised....

chamboin commented 3 years ago

Hi, I'm trying to mine on Xavier AGX, but I conquer a building problem

CMake Error at CMakeLists.txt:71 (find_package):
  Could not find a package configuration file provided by "ethash" with any
  of the following names:

    ethashConfig.cmake
    ethash-config.cmake

  Add the installation prefix of "ethash" to CMAKE_PREFIX_PATH or set
  "ethash_DIR" to a directory containing one of the above files.  If "ethash"
  provides a separate development package or SDK, be sure it has been
  installed.

Can someone help?

bobby20180331 commented 3 years ago

The Dagger Hashimoto hash used by ETH is intentionally memory constrained such that the relationship between hash rate and memory bandwidth is virtually linear. So, a little math,

A tuned Vega 64 GPU achieves 50MH/S at 125watts, and has a memory bandwidth of 483.8 GB/s. The Xavier memory is rated at a theoretical max. of 51GB/s, so it should deliver up to 5MH/S at 15 watts.

I'd be very surprised.... Hi @jean-m-cyr

I have copiled on nvidia jetson Xavier AGX. which has a memory bandwidth of about 137GB/s. but hash rate have only about 0.2MH/s. what's wrong with it? My interested point is how to achieve 10~20MH/s on xavier AGX platform.

image

https://www.nvidia.cn/autonomous-machines/embedded-systems/

chamboin commented 3 years ago

The Dagger Hashimoto hash used by ETH is intentionally memory constrained such that the relationship between hash rate and memory bandwidth is virtually linear. So, a little math, A tuned Vega 64 GPU achieves 50MH/S at 125watts, and has a memory bandwidth of 483.8 GB/s. The Xavier memory is rated at a theoretical max. of 51GB/s, so it should deliver up to 5MH/S at 15 watts. I'd be very surprised.... Hi @jean-m-cyr

I have copiled on nvidia jetson Xavier AGX. which has a memory bandwidth of about 137GB/s. but hash rate have only about 0.2MH/s. what's wrong with it? My interested point is how to achieve 10~20MH/s on xavier AGX platform.

image

https://www.nvidia.cn/autonomous-machines/embedded-systems/

Hi @bobby20180331 , I have compiled on my AGX Xavier platform as well, same hash rate with you, only 200kH/s, notify me if you find any interesting improvments please :)

Bvgo commented 3 years ago

Hi,

How can I mine on Jetson nano, I need a step by step direction or a tutorial I could follow. Also how can I connect to multiple nodes running in different locations.

It doesn't necessarily have to be ethereum. Thanks