'How use "export CFLAGS=-I/path/to/cudnn/include" to set cuDNN path

I am new in Python. I try to install CuPy. I follow CuPy Installation instruction. I managed to install CUDA 11.5 and installed cuTENSOR: v1.3 and cuSPARSELt v0.1.0 in /CUDA_PATH. However, cuDNN did not give me chance to pick a path, so it is installed in C:\Program Files\NVIDIA\CUDNN\v8.3.

Now I need to use

  • $ export CFLAGS=-I/C:\Program Files\NVIDIA\CUDNN\v8.3/to/cudnn/include
  • $ export LDFLAGS=-L/C:\Program Files\NVIDIA\CUDNN\v8.3/to/cudnn/lib
  • $ export LD_LIBRARY_PATH=/C:\Program Files\NVIDIA\CUDNN\v8.3/to/cudnn/lib:$LD_LIBRARY_PATH

based on the Cupy installation guide to set environment variable. Can someone tell me where and how to send these three commands? Many thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source