Skip to content

Commit 56ec88b

Browse files
committed
move description to separate file and cross reference
1 parent db9cc3f commit 56ec88b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cuda_bindings/docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
overview.md
1010
motivation.md
1111
release.md
12+
environment_variables.md
1213
api.rst
1314

1415

cuda_bindings/docs/source/install.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ During the build process, environment variable `CUDA_HOME` or `CUDA_PATH` are us
4646
export CUDA_HOME=/usr/local/cuda
4747
```
4848

49-
Some other build time environment variables are as follows:
49+
See [Environment Variables](environment_variables.md) for a description of other builkd time environment variables.
5050

51-
`CUDA_PYTHON_PARSER_CACHING` : bool, toggles the caching of parsed header files during the cuda-bindings build process. If caching is enabled (`CUDA_PYTHON_PARSER_CACHING` is True), the cache path is set to ./cache_<library_name>, where <library_name> is derived from the cuda toolkit libraries used to build cuda-bindings.
5251

53-
`CUDA_PYTHON_PARALLEL_LEVEL` (previously `PARALLEL_LEVEL`) : int, sets the number of threads used in the compilation of cython files. This is passed as the `nthreads` argument to :meth:`cython.cythonize` and as the parallel attribute for building extension modules.
5452

5553
### In-place
5654

cuda_bindings/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
DeprecationWarning,
4040
stacklevel=1,
4141
)
42-
nthreads = int(os.environ.get("CUDA_PYTHON_PARALLEL_LEVEL", "0") or "0")
42+
nthreads = int(os.environ.get("PARALLEL_LEVEL", "0"))
43+
else:
44+
nthreads = int(os.environ.get("CUDA_PYTHON_PARALLEL_LEVEL", "0") or "0")
4345
PARSER_CACHING = os.environ.get("CUDA_PYTHON_PARSER_CACHING", False)
4446
PARSER_CACHING = bool(PARSER_CACHING)
4547

0 commit comments

Comments
 (0)