咖啡如何安装

  介绍

这篇文章主要介绍了咖啡如何安装,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获、下面让小编带着大家一起了解一下。

系统及工具包

<李>

win10

<李> visual studio 2015

<李>

CUDA10.0(咖啡官方给出的是CUDA8.0,但是据说只有10.0版本才支持RTX2070, 2080年,2080 ti)

<李>

cudnn在官网下载与CUDA10.0对应的版本

<李>

python3.5-anaconda

<李>

咖啡官方要求的其他工具

<李>

安装CUDA工具,最好是把系统上其他版本的CUDA删除掉,到官网下载CUDA10.0以及对应版本的cudnn;

<李>

python必须选择3.5版,本官网FAQ里有链接可以下载默认python3.5的安装包;

<李>

蟒蛇安装其他工具时,如果网速较慢,可以使用国内的开源镜像站,如清华大学开源镜像站;

修改配置文件,脚本/build_win.cmd

<编辑>从第4行开始,修改如下:一直编辑 <>之前,,,,::Default 价值   ,,,if  DEFINED  APPVEYOR  (   ,,,echo  Setting  Appveyor 缺省值   ,,,if  NOT  DEFINED  MSVC_VERSION  set  MSVC_VERSION=14   ,,,if  NOT  DEFINED  WITH_NINJA  set  WITH_NINJA=0   ,,,if  NOT  DEFINED  CPU_ONLY  set  CPU_ONLY=0   ,,,if  NOT  DEFINED  CUDA_ARCH_NAME  set  CUDA_ARCH_NAME=汽车   ,,,if  NOT  DEFINED  CMAKE_CONFIG  set  CMAKE_CONFIG=释放   ,,,if  NOT  DEFINED  USE_NCCL  set  USE_NCCL=0   ,,,if  NOT  DEFINED  CMAKE_BUILD_SHARED_LIBS  set  CMAKE_BUILD_SHARED_LIBS=0   ,,,if  NOT  DEFINED  PYTHON_VERSION  set  PYTHON_VERSION=3   ,,,if  NOT  DEFINED  BUILD_PYTHON  set  BUILD_PYTHON=1   ,,,if  NOT  DEFINED  BUILD_PYTHON_LAYER  set  BUILD_PYTHON_LAYER=1   ,,,if  NOT  DEFINED  BUILD_MATLAB  set  BUILD_MATLAB=0   ,,,if  NOT  DEFINED  PYTHON_EXE  set  PYTHON_EXE=python   ,,,if  NOT  DEFINED  RUN_TESTS  set  RUN_TESTS=1   ,,,if  NOT  DEFINED  RUN_LINT  set  RUN_LINT=1   ,,,if  NOT  DEFINED  RUN_INSTALL  set  RUN_INSTALL=1      ,,,::,Set  python  2.7, with  conda  as 从而default  python   ,,,if  ! PYTHON_VERSION !, EQU  2, (   ,,,,,,,set  CONDA_ROOT=C: \ Miniconda-x64   ,,,)   ,,,::,Set  python  3.5, with  conda  as 从而default  python   ,,,if  ! PYTHON_VERSION !, EQU  3, (   ,,,,,,,set  CONDA_ROOT=C: \蟒蛇   ,,,)   ,,,set 路径=CONDA_ROOT ! ! CONDA_ROOT ! \脚本;! CONDA_ROOT ! \图书馆\ bin;路径!      ,,,::,Check  that  have 我方表示歉意,right  python 版本   ,,,! PYTHON_EXE !——版本   ,,,::,Add 从而required 通道   ,,,conda  config ——add  channels  conda-forge   ,,,conda  config ——add  channels  willyd   ,,,::Update  conda   ,,,conda  update  conda  - y   ,,,::,Download  other  required 包   ,,,conda  install ——yes  cmake  ninja  numpy  scipy  protobuf==3.1.0  six  scikit-image  pyyaml  pydotplus  graphviz      ,,,if  ERRORLEVEL  1,, (   ,,,,,echo 错误:,Conda  update 或是install 失败了   ,,,,,exit /b  1   ,,,)      ,,,::,Install  cuda 以及disable  tests  if 需要   ,,,if  ! WITH_CUDA !,==, 1, (   ,,,,,,,call  % ~ dp0 \ appveyor \ appveyor_install_cuda.cmd   ,,,,,,,set  CPU_ONLY=0   ,,,,,,,set  RUN_TESTS=0   ,,,,,,,set  USE_NCCL=1   ,,,),else  (   ,,,,,,,set  CPU_ONLY=1   ,,,)      ,,,::,Disable 从而tests 拷贝debug 配置   ,,,if “% CMAKE_CONFIG %,,==,“Debug", (   ,,,,,,,echo  Disabling  tests 提醒appveyor  with  config ==% CMAKE_CONFIG %   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

咖啡如何安装