在Linux上可以用ppa安装,在MacOS上可以用brew tap安装,可能从源代码安装。
留意,当举办GPU挖矿时,在geth中hashrate是不行用的。查察ethminer的hashrate,miner.hashrate将一直陈诉0.
eth -i -v 8 -j // -j for rpc
// wget, tar, opencl
tail -f geth.log
sudo aticonfig –list-adapters
reboot
硬件
brew reinstall cpp-ethereum --with-gpu-mining --devel --headless --build-from-source
make install
* 0. 01:00.0 AMD Radeon R9 200 Series
wget
币搜:比特币规模的搜索引擎
* – Default adapter
• 地点2
eth -m on -G -a -i -v 8 //
apt-get install cpp-ethereum
NVIDIA CUDA openCL
查抄你的冷却状态:
Ubuntu系统
./AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
用eth挖矿:
Windows系统上查察
eth -m on -G -a -i -v 8 //
ethminer与geth通过8545端口通信。你可以利用geth –rpcport optoin改变这一默认端口。Ethminer将发明Geth的任何端口。留意,你需要利用–rpccorsdomain localhost色环指CORS数据头。你也可以利用-F :3301为ethminer配置端口。假如你规划在同一台电脑上配置多个挖矿实例,配置端口是须要的。假如你正在一个私有群(cluster)长举办测试,我们推荐你举办CPU挖矿。
假如ethminer的默认配置不能事情,请用以下呼吁指定OpenCL设备:–opencl-device X ,X为0,1,2等。假如运行ethminer -M时,你应该看到雷同于如下的信息:
举办GPU挖矿,你需要一个coinbase账户。你可以当地可能长途配置此账户。
ln -s /opt/AMDAPPSDK-2.9-1 /opt/AMDAPP
可能你可以单独利用eth举办GPU挖矿:
GPU挖矿需要1-2GB显存(译者注:1GB显存不行以),显存不足会一直报错。GPU矿机是基于OpenCL的,所以AMD显卡比NVIDI显卡更有效率。
cd cpp-ethereum
Frontier阶段默认的客户端Geth只支持CPU挖矿。我们正在开拓Geth客户端的GPU挖矿成果,可是在Frontier阶段完成不了。可是,Geth可以和Ethminer共同举办GPU挖矿。
ln -s /opt/AMDAPP/lib/x86_64/* /usr/lib/
Benchmarking on platform: { "platform": "NVIDIA CUDA", "device": "GeForce GTX 750 Ti", "version": "OpenCL 1.1 CUDA" }
sudo installer -pkg ~/Desktop/cuda_7.0.29_mac.pkg -target /
共同利用ethminer和geth
下载: ADL_SDK8.zip 和 AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
AMD SDK openCL
调试geth:
ldconfig
brew tap ethereum/ethereum
geth account new
挖矿软件
cmake -DETHASHCL=1 -DGUI=0
ethminer -G // -G for GPU, -M for benchmark
Nvidia显卡
C++客户端可以举办GPU挖矿。C++客户端包罗eth(呼吁行用户界面)、AlethZero(图形用户界面)和ethMiner(独立的挖矿软件)。
make -j4
brew install cpp-ethereum –with-gpu-mining –devel –build-from-source
aticonfig –adapter=0 –od-gettemperature
geth –rpccorsdomain localhost 2>> geth.log &
ethminer和eth
ASIC和FPGA(即专业矿机)是无效的。
• 地点1
利用Ubuntu 14.04和Nvidia显卡的用户请看
MacOSx系统
从源代码安装ethminer:
make -DCMAKE_BUILD_TYPE=Debug -DETHASHCL=1 -DGUI=0
tail -f geth.log
apt-get install fglrx-updates
Linux系统:
Geth客户端的CPU挖矿效率很是低,纯属鸡肋。如对CPU挖矿感乐趣,,请参照此帖。下面先容GPU挖矿。 按照本身的显卡范例和系统,选择openCL: 调试矿机: ln -s /opt/AMDAPP/include/CL /usr/include ethminer -G -M // -G for GPU, -M for benchmark 通过rpc,ethminer也可以和eth共同利用 Benchmarking on platform: { "platform": "Apple", "device": "Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz", "version": "OpenCL 1.2 " } brew update gdb –args ethminer -G -M 操作ethminer举办GPU挖矿 geth –rpccorsdomain “localhost” –verbosity 6 2>> geth.log MacOS系统: sudo aticonfig –adapter=all –initial AMD显卡 留意,你不许为geth配置–mine参数可能在节制台中开启矿机,除非你想在GPU挖矿之长举办CPU挖矿。 郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。