Skip to content

Required environment variables

6DammK9 edited this page Feb 4, 2017 · 1 revision

Required environment variables

  • PATH: gcc compiler path (linux, e.g. /usr/bin/gcc), VS "bin" path (windows, e.g. C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin)
  • CUDA_PATH: Path of installed CUDA (e.g. C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0)
  • INCLUDE (Windows): Include path of Windows Kit (e.g. C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt)
  • LIB (Windows): Lib path of Windows Kit (e.g. C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\(um and ucrt))

If they are not set correctly, you will have Runtime Errors while painting (usually by nvcc, see below)

subprocess.CalledProcessError: Command '['nvcc', '--preprocess', '-Xcompiler', '/wd 4819', '-m64', 'C:\Users\SiggEye\AppData\Local\Temp\tmpcq8wdugx\kern.cu']' returned non-zero exit status 1
... (Lots of lines)
stdout/stderr:
... (More lines including \r\n in literal)
nvcc fatal : Cannot find compiler 'cl.exe' in PATH\r\n

Check nvcc fatal to figure out which issue you're exactly in. If it does not fit your case, raise Issues.

Usually there are some common reasons:

  • Python chainer is not installed with cuda/ cuDNN support. See Installation Guide and reinstall it.
  • Environment variables are not set correctly. Locate the missing files and redefine it.
Clone this wiki locally