-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document the buildtime environment variables #374
base: main
Are you sure you want to change the base?
Conversation
@@ -308,9 +315,9 @@ def build_extension(self, ext): | |||
# Allow extensions to discover libraries at runtime | |||
# relative their wheels installation. | |||
if ext.name == "cuda.bindings._bindings.cynvrtc": | |||
ldflag = f"-Wl,--disable-new-dtags,-rpath,$ORIGIN/../../../nvidia/cuda_nvrtc/lib" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would appear this file escaped ruff linting in a previous commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DeprecationWarning, | ||
stacklevel=1, | ||
) | ||
nthreads = int(os.environ.get("CUDA_PYTHON_PARALLEL_LEVEL", "0") or "0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This treatment ignored PARALLEL_LEVEL
, so it means PARALLEL_LEVEL
is not deprecated but removed.
@@ -46,6 +46,12 @@ During the build process, environment variable `CUDA_HOME` or `CUDA_PATH` are us | |||
export CUDA_HOME=/usr/local/cuda | |||
``` | |||
|
|||
Some other build time environment variables are as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create a new page "environment variables", move the text there & also add run-time env vars, and link it to index.rst & cross-ref it here? This way we have env vars easily findable on table of contents. Right now you have to know what you're looking for.
close #106
WIP see question added to issue #106