Environment variables¶
Here are the environment variables CuPy uses.
|
Path to the directory containing CUDA.
The parent of the directory containing |
|
Path to the directory to store kernel cache.
|
|
If set to 1, CUDA source file will be saved along with compiled binary in the cache directory for debug purpose. It is disabled by default. Note: source file will not be saved if the compiled binary is already stored in the cache. |
|
If set to 1, |
|
If set to 1, when CUDA kernel compilation fails, CuPy dumps CUDA kernel code to standard error. It is disabled by default. |
|
If set to 1, CUDA kernel will be compiled with
debug information ( |
|
The amount of memory that can be allocated for
each device.
The value can be specified in absolute bytes or
fraction (e.g., |
|
Set the seed for random number generators. |
|
If set to 1, the following syntax is enabled:
|
|
A comma-separated string of backend names
( |
|
If set to 1, it allows CUDA libraries to use Tensor Cores TF32 compute for 32-bit floating point compute. The default is 0 and TF32 is not used. |
|
Define the compiler to use when compiling CUDA
source. Note that most CuPy kernels are built with
NVRTC; this environment is only effective for
RawKernels/RawModules with |
Moreover, as in any CUDA programs, all of the CUDA environment variables listed in the CUDA Toolkit
Documentation will also be honored. When CUPY_ACCELERATORS
or NVCC
environment variables
are set, g++-6 or later is required as the runtime host compiler. Please refer to
Installing CuPy from Source for the details on how to install g++.
For installation¶
These environment variables are used during installation (building CuPy from source).
|
See the description above. |
|
Path to the cuTENSOR root directory that contains |
|
Define the compiler to use when compiling CUDA files. |
|
Enforce CuPy to be installed against Python 3.5.0 (not recommended). |
|
For building the ROCm support, see Building CuPy for ROCm for further detail. |
|
To build CuPy for a particular CUDA architecture. For example,
|