XEN GPU部署

需要Ubuntu或者Windows ubuntu子系统

步骤均相同,需安装:

  • CUDA 下载地址:https://developer.nvidia.com/cuda-downloads
  • sudo apt install ocl-icd-opencl-dev
  • CMake  sudo apt install cmake
  • python sudo apt install -y python3

在这里Linux下安装CUDA需要按照提示命令执行即可大致如下

Ubuntu 20.04系统 CUDA Toolkit 12.2安装,
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda-repo-ubuntu2004-12-2-local_12.2.2-535.104.05-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-12-2-local_12.2.2-535.104.05-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2004-12-2-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda

Windows11 ubuntu子系统20.04 CUDA Toolkit 12.2安装,
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda-repo-wsl-ubuntu-12-2-local_12.2.2-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-12-2-local_12.2.2-1_amd64.deb
sudo cp /var/cuda-repo-wsl-ubuntu-12-2-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda
sudo apt install -y ocl-icd-opencl-dev
sudo apt install -y cmake
sudo apt install -y python3
git clone https://github.com/shanhaicoder/XENGPUMiner.git 
cd XENGPUMiner 

修改钱包
sudo sed -i 's/0x24691e54afafe2416a8252097c9ca67557271475/你的钱包地址/g' config.conf

编译
chmod +x build.sh 
./build.sh

依赖
pip install -U -r requirements.txt

运行 1024 根据自己的内存修改  
python3 miner.py --gpu=true & ./xengpuminer -b 1024

各种显卡算力: