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.
Ubuntu22
You need to install:
NVCC,Protoc,Rust
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.
sudo apt-get install protobuf-compiler
export PROTOC=$(which protoc)
cargo build --release
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.
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
my laptop 3060,12700h