CUDA(33)之ETH Mining(Parallel-mining project based on Opencl/GPU )

1. 安装nvidia显卡驱动; 然后安装Opencl/Cuda

http://blog.csdn.net/canhui_wang/article/details/72540004

2. 配置Ethereum挖矿的本地环境

sudo apt-gethttps://github.com/Genoil/cpp-ethereum/blob/master/README.md -y install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install git
sudo apt-get install cmake
sudo apt-get install libcryptopp-dev
sudo apt-get install libleveldb-dev
sudo apt-get install libjsoncpp-dev
sudo apt-get install libjsonrpccpp-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libgmp-dev
sudo apt-get install libreadline-dev
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install ocl-icd-libopencl1
sudo apt-get install opencl-headers
sudo apt-get install mesa-common-dev
sudo apt-get install libmicrohttpd-dev
sudo apt-get install build-essential

3. 下载Github项目到本地

git clone https://github.com/Genoil/cpp-ethereum/
cd cpp-ethereum/
mkdir build
cd build

4. 编译Github挖矿项目

sudo cmake -DBUNDLE=cudaminer ..
sudo make -j8

5. 执行该项目
在当前目录下的 ethminer 文件夹中,生成了一个可执行文件 ethminer,执行 ./ethminer + 选择参数

CUDA(33)之ETH Mining(Parallel-mining project based on Opencl/GPU )_第1张图片

参考资料

  1. 开源挖矿项目:https://github.com/genoil/cpp-ethereum
  2. 显卡驱动:http://blog.csdn.net/canhui_wang/article/details/72540004

你可能感兴趣的:(GPU编程)