chainer安装问题--------未解决

关于cuda和cudnn的安装上篇已经进行了说明。

  • 判断安装好的chainer是否支持cuda运算。


    判断chainer是否支持cuda

要使chainer支持cuda的运算,一栏cupy包,然而在这个步骤碰到问题
问题:明明主机成功配置了cuda,在安装cupy时却发生错误:

Complete output from command python setup.py egg_info:


*** WARNING: Cannot find nvToolsExt. nvtx was disabled.


Options: {'package_name': 'cupy', 'long_description': None, 'wheel_libs': [], >'profile': False, 'linetrace': False, 'annotate': False, 'no_cuda': False}
-------- Configuring Module: cuda --------
Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools


  • CuPy Configuration Summary *

Build Environment:
Include directories: ['C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include', 'C:\Program Files\NVIDIA Corporation\NvToolsExt\include']
Library directories: ['C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin', 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64', 'C:\Program Files\NVIDIA Corporation\NvToolsExt\lib\x64']
nvcc command : ['C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin/nvcc.exe']
Environment Variables:
CFLAGS : (none)
LDFLAGS : (none)
LIBRARY_PATH : (none)
CUDA_PATH : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0
NVCC : (none)
Modules:
cuda : No
-> Include files not found: ['cublas_v2.h', 'cuda.h', 'cuda_profiler_api.h', 'cuda_runtime.h', 'cufft.h', 'curand.h', 'cusparse.h', 'nvrtc.h']
-> Check your CFLAGS environment variable.
ERROR: CUDA could not be found on your system.
Please refer to the Installation Guide for details:
https://docs-cupy.chainer.org/en/stable/install.html


Traceback (most recent call last):
File "", line 1, in
File "C:\Users\cmjoh\AppData\Local\Temp\pip-build-g5xaodze\cupy\setup.py", line 64, in
ext_modules = cupy_setup_build.get_ext_modules()
File "C:\Users\cmjoh\AppData\Local\Temp\pip-build-g5xaodze\cupy\cupy_setup_build.py", line 547, in get_ext_modules
extensions = make_extensions(arg_options, compiler, use_cython)
File "C:\Users\cmjoh\AppData\Local\Temp\pip-build-g5xaodze\cupy\cupy_setup_build.py", line 374, in make_extensions
raise Exception('Your CUDA environment is invalid. '
Exception: Your CUDA environment is invalid. Please check above error log.

求解决!!!!

# 参考文献

chainer官方文档
cupy Installation Guide

你可能感兴趣的:(chainer安装问题--------未解决)