-
Notifications
You must be signed in to change notification settings - Fork 306
cuda.core: complete the naming audit from #1945 #1986
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
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a269bdd
cuda.core: address naming-audit items from #1945
Andy-Jost 6b6bc8b
cuda.core: unify conditional graph API (#1945)
Andy-Jost a42739f
cuda.core: KernelAttributes are properties; per-device via indexing (…
Andy-Jost a95dc9e
fix: update test_read_only_kernel_attributes for property API (#1945)
Andy-Jost 0c321a9
cuda.core: remove GraphCondition.__int__ (#1945)
Andy-Jost f2798cf
cuda.core: rename EventOptions to bare-adjective form (#1945)
Andy-Jost 813d3d9
Merge remote-tracking branch 'origin/main' into naming-audit-1945
Andy-Jost 6469028
cuda.core: rename Event.uses_blocking_sync to is_blocking_sync (#1945)
Andy-Jost 22b3800
cuda.core: fix int(condition) call sites missed when removing GraphCo…
Andy-Jost File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Minor nit bc it's not API, but there is
uses_blocking_syncvs.use_blocking_synchere.Uh oh!
There was an error while loading. Please reload this page.
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.
Good catch. This points to larger issue in the API about matching language between
*Optionsclasses and the properties that reflect those options.Here's what appears in events:
EventOptionsEventenable_timingis_timing_enableduse_blocking_syncuses_blocking_syncipc_enabledis_ipc_enabledThe code base consistently uses adjective -> is_ + adjective, as in
ipc_enabled->is_ipc_enabled, andnonblocking->is_nonblocking. The imperative forms (e.g.enable_timing) are the odd ones.Following that, I'll change events to say
timing_enabled->is_timing_enabledandblocking_sync->is_blocking_sync.Side note:
uses_blocking_syncwould be the only instance ofuses_. Whileis_blocking_syncis slightly unnatural, this option is overall more consistent.