1,cuda,安装cuda v9.0
2,vs,我自己用的vs2017,需要安装vs2015 V140
3,检查CUDA和VS环境变量配置是否正确
4,按照ethminer官方流程执行编译流程,在CMD(我用的git)命令下,CD到ethminer算法文件夹路径下
mkdir build
cd build
cmake .. -G“Visual Studio 15 2017 Win64”-Tv140
cmake --build 在windows上如果最后一步有问题用 cmake --build . --config Release 代替