Skip to content

cuda.core.system: Naming improvements suggested in #1945#1946

Open
mdboom wants to merge 3 commits intoNVIDIA:mainfrom
mdboom:nvml-renaming
Open

cuda.core.system: Naming improvements suggested in #1945#1946
mdboom wants to merge 3 commits intoNVIDIA:mainfrom
mdboom:nvml-renaming

Conversation

@mdboom
Copy link
Copy Markdown
Contributor

@mdboom mdboom commented Apr 17, 2026

This applies the non-controversial renaming suggestions in #1945 within cuda.core.system.

@mdboom mdboom added this to the cuda.core v1.0.0 milestone Apr 17, 2026
@mdboom mdboom self-assigned this Apr 17, 2026
@mdboom mdboom added enhancement Any code-related improvements cuda.core Everything related to the cuda.core module labels Apr 17, 2026
@mdboom mdboom marked this pull request as draft April 17, 2026 18:23
@copy-pr-bot
Copy link
Copy Markdown
Contributor

copy-pr-bot Bot commented Apr 17, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@mdboom mdboom marked this pull request as ready for review April 17, 2026 18:34
@github-actions
Copy link
Copy Markdown

@mdboom mdboom requested a review from rwgk April 21, 2026 16:03

@property
def persistence_mode_enabled(self) -> bool:
def persistence_mode(self) -> bool:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is the only one that stands out to me as odd.

To be similar to is_c2c_enabled above, I'd expect is_persistence_enabled here. But really, is_persistence_mode_enabled would seem clearer. Then again, why are we dropping mode in is_c2c_mode_enabled? Overall my preference is:

is_c2c_mode_enabled
is_persistence_mode_enabled

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes our convention for bool properties is is_<something>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.core Everything related to the cuda.core module enhancement Any code-related improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants