Skip to content

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

Merged
merged 6 commits into from
Mar 26, 2021

Conversation

gmarkall
Copy link
Member

The NUMBAPRO_* env vars have been deprecated and ignored since 0.45 - this PR 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).

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.

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.
Copy link
Contributor

@stuartarchibald stuartarchibald left a 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!


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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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


.. envvar:: NUMBA_CUDA_LOG_SIZE

Buffer size for logs produced by driver API operations. This defaults to 1024
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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


.. envvar:: NUMBA_CUDA_VERBOSE_JIT_LOG

Whether the driver should produce verbose log messages. Defaults to 1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Whether the driver should produce verbose log messages. Defaults to 1,
Whether the CUDA driver should produce verbose log messages. Defaults to 1,

@stuartarchibald stuartarchibald added 4 - Waiting on author Waiting for author to respond to review and removed 3 - Ready for Review labels Mar 22, 2021
@gmarkall
Copy link
Member Author

@stuartarchibald Many thanks for the review - documentation suggestions applied, and other questions responded to.

@gmarkall gmarkall added 4 - Waiting on reviewer Waiting for reviewer to respond to author and removed 4 - Waiting on author Waiting for author to respond to review labels Mar 22, 2021
Copy link
Contributor

@stuartarchibald stuartarchibald left a 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.

@stuartarchibald stuartarchibald added 4 - Waiting on CI Review etc done, waiting for CI to finish Pending BuildFarm For PRs that have been reviewed but pending a push through our buildfarm and removed 4 - Waiting on reviewer Waiting for reviewer to respond to author labels Mar 22, 2021
@stuartarchibald stuartarchibald added this to the Numba 0.54 RC milestone Mar 22, 2021
@stuartarchibald
Copy link
Contributor

Buildfarm ID: numba_smoketest_cuda_yaml_33.

@stuartarchibald
Copy link
Contributor

Buildfarm ID: numba_smoketest_cuda_yaml_33.

Passed.

@stuartarchibald stuartarchibald added 5 - Ready to merge Review and testing done, is ready to merge BuildFarm Passed For PRs that have been through the buildfarm and passed and removed 4 - Waiting on CI Review etc done, waiting for CI to finish Pending BuildFarm For PRs that have been reviewed but pending a push through our buildfarm labels Mar 22, 2021
@sklam
Copy link
Member

sklam commented Mar 22, 2021

@gmarkall , there's a conflict

@gmarkall
Copy link
Member Author

Conflicts now resolved.

@stuartarchibald
Copy link
Contributor

Conflicts now resolved.

Thanks @gmarkall, looks good.

@sklam sklam merged commit a78e41d into numba:master Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to merge Review and testing done, is ready to merge BuildFarm Passed For PRs that have been through the buildfarm and passed CUDA CUDA related issue/PR Effort - short Short size effort needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants