Skip to content

wujian0327/ore-cli-cuda-jito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ore-cli-cuda-jito

What you need to know is that

the current GPU performance is much lower than the CPU.

Copy from https://github.com/regolith-labs/drillx.git

I tested the 4090 and A100, and the performance is not as good as the average desktop.

No optimization. Just for fun.

You can use gpu and cpu to calculate hashes at the same time, and then use jito to submit your transaction.

System requirements

Ubuntu22

You need to install:

NVCC,Protoc,Rust

Jito requirements

you should get a Solana public key approved in jito, and this public key is not the same as your ore submit public key.

Getting Started | Jito (gitbook.io)

This key is used for jito_auth.json.

And jito_auth.json will pay gas fees.

Get start

sudo apt-get install protobuf-compiler
export PROTOC=$(which protoc)
cargo build --release

mine with cpu and gpu

cargo run --release   -- mine-cuda --keypair ./id.json --rpc RPC_URL  --priority-fee 0 --min 10 --threads 10  --jito-fee 5000 --jito-auth jito_auth.json --size 1

The size parameter is the number of hashes that the GPU processes at one time. If it is too large, the gpu memory will not be enough.

mine with cpu

cargo run --release   -- mine --keypair ./id.json --rpc RPC_URL  --priority-fee 0 --min 10 --threads 10  --jito-fee 5000 --jito-auth jito_auth.json --size 1

you can use start.sh to restart automatically

reference

my laptop 3060,12700h

image-20240811143156359

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published