基于区块链的毕业设计Docker image for mining with ethminer v0.19.0 using nvidia cuda – 使用nvidia cuda使用ethminer v0.19.0挖掘的Docker图像

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Docker image for mining with ethminer v0.19.0 using nvidia cuda – 使用nvidia cuda使用ethminer v0.19.0挖掘的Docker图像 是一篇很好的国外资料

Docker image for mining with ethminer v0.19.0 using nvidia cuda

First make sure that cuda is installed on the host machine along with docker-nvidia.

sudo apt install nvidia-driver-440 

Restart the machine

docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f  curl https://get.docker.com | sh  sudo systemctl start docker && sudo systemctl enable docker  distribution=$(. /etc/os-release;echo $ID$VERSION_ID)  curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -  curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list  sudo apt-get update  sudo apt-get install -y nvidia-docker2  sudo systemctl restart docker 

Test with

docker run --rm --gpus all nvidia/cuda:10.0-base nvidia-smi 

Make sure cuda toolkit is installed

sudo apt install nvidia-cuda-toolkit 

Then build the docker image with:

make build 

To begin mining set the env var ETHMINER_ARGS and which ETHMINER_GPUS to allocate to docker

export ETHMINER_GPUS="all" export ETHMINER_ARGS="-U -P stratum1+ssl://{ETH-address}.worker1@eu1.ethermine.org:5555 --report-hashrate" 

Or if you just want to use a specific GPU

export ETHMINER_GPUS='device=1' 

Begin mining using docker

make mine 

docker使用nvidia cuda使用ethminer v0.19.0进行挖掘的图像

首先确保cuda与docker nvidia一起安装在主机上。

sudo apt install nvidia-driver-440 

重新启动计算机

docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f  curl https://get.docker.com | sh  sudo systemctl start docker && sudo systemctl enable docker  distribution=$(. /etc/os-release;echo $ID$VERSION_ID)  curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -  curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list  sudo apt-get update  sudo apt-get install -y nvidia-docker2  sudo systemctl restart docker 

使用测试

docker run --rm --gpus all nvidia/cuda:10.0-base nvidia-smi 

确保安装了cuda toolkit

sudo apt install nvidia-cuda-toolkit 

然后使用以下工具构建docker映像:

make build 

要开始挖掘,请设置env var ETHMINER_参数以及要分配给docker的ETHMINER_GPU

export ETHMINER_GPUS="all" export ETHMINER_ARGS="-U -P stratum1+ssl://{ETH-address}.worker1@eu1.ethermine.org:5555 --report-hashrate" 

或者如果您只想使用特定的GPU

export ETHMINER_GPUS='device=1' 

请使用docker开始挖掘

make mine 

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/19706.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Docker image for mining with ethminer v0.19.0 using nvidia cuda – 使用nvidia cuda使用ethminer v0.19.0挖掘的Docker图像

提供最优质的资源集合

立即查看 了解详情