-
Notifications
You must be signed in to change notification settings - Fork 1.2k
CUDA: Remove NUMBAPRO env var warnings, envvars.py + other small tidy-ups #6844
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
Conversation
The `NUMBAPRO_*` env vars have been deprecated and ignored since 0.45 - this commit removes the warning about them. Now the warning is gone, the `get_numba_envvar` function serves no purpose above normal environment variables, so the variables that this was used for are converted to normal config variables, and documented. I changed the `VERBOSE_CU_JIT_LOG` variable name to `CUDA_VERBOSE_JIT_LOG` for consistency - I don't believe this needs a deprecation cycle as it's never been public (and is likely unused in general).
The CUDA toolkits supported by Numba at present (9.x onwards) all required CC 3.0 or above, so we should check for CC 3.0 or above as well.
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.
Thanks for the patch, few minor things to look at else looks good. It's good to see legacy references finally removed!
docs/source/reference/envvars.rst
Outdated
|
||
Path of the directory in which the CUDA driver libraries are to be found. | ||
Normally this should not need to be set as Numba can locate the driver in | ||
standard locations. However, ths variable can be used if the driver is in a |
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.
standard locations. However, ths variable can be used if the driver is in a | |
standard locations. However, this variable can be used if the driver is in a |
docs/source/reference/envvars.rst
Outdated
|
||
.. envvar:: NUMBA_CUDA_LOG_SIZE | ||
|
||
Buffer size for logs produced by driver API operations. This defaults to 1024 |
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.
Buffer size for logs produced by driver API operations. This defaults to 1024 | |
Buffer size for logs produced by CUDA driver API operations. This defaults to 1024 |
docs/source/reference/envvars.rst
Outdated
|
||
.. envvar:: NUMBA_CUDA_VERBOSE_JIT_LOG | ||
|
||
Whether the driver should produce verbose log messages. Defaults to 1, |
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.
Whether the driver should produce verbose log messages. Defaults to 1, | |
Whether the CUDA driver should produce verbose log messages. Defaults to 1, |
@stuartarchibald Many thanks for the review - documentation suggestions applied, and other questions responded to. |
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.
Thanks for the patch and fixes.
Buildfarm ID: |
Passed. |
@gmarkall , there's a conflict |
Conflicts now resolved. |
Thanks @gmarkall, looks good. |
The
NUMBAPRO_*
env vars have been deprecated and ignored since 0.45 - this PR removes the warning about them. Now the warning is gone, theget_numba_envvar
function serves no purpose above normal environment variables, so the variables that this was used for are converted to normal config variables, and documented.I changed the
VERBOSE_CU_JIT_LOG
variable name toCUDA_VERBOSE_JIT_LOG
for consistency - I don't believe this needs a deprecation cycle as it's never been public (and is likely unused in general).There are a couple of other small tidy-ups bundled in this PR related to the NumbaPro name, a stale link, and a correction to the check for minumum supported compute capability.