-
Notifications
You must be signed in to change notification settings - Fork 226
chore: Replace isinstance(obj, T) with type(obj) is T comparisons #1292
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
Open
bharatr21
wants to merge
16
commits into
NVIDIA:main
Choose a base branch
from
bharatr21:isinstance-type
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
874b7f4
chore: Replace isinstance(obj, T) with type(obj) is T comparisons
bharatr21 0db38d0
Merge branch 'main' into isinstance-type
bharatr21 0fd52b4
Merge branch 'main' into isinstance-type
bharatr21 eb9ca80
Add isinstance fallback to maintain backward compat for subclasses
bharatr21 0b9d8ad
Merge branch 'main' into isinstance-type
bharatr21 5e09e0c
Merge branch 'main' into isinstance-type
mdboom 85bc86c
Fix test failures (attempt 1/n)
bharatr21 5c72f9f
Merge branch 'main' into isinstance-type
bharatr21 6ea8616
Merge branch 'main' into isinstance-type
leofang ed81c11
Fix test failures (attempt 2/n)
bharatr21 f07d82c
Merge branch 'main' into isinstance-type
bharatr21 3f9b5f1
Apply suggestions from code review by @mdboom and @leofang
bharatr21 0fc1ed8
Fix test_graph.py to use bool correctly in cudaGraphSetConditional call.
mdboom 3025e04
More explicit typing of CUgraphConditionalHandle
mdboom 48a0856
Improve conditional kernel tests by testing both bools and ints
mdboom d9a7c14
fix
leofang 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| .. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| .. SPDX-License-Identifier: Apache-2.0 | ||
| .. currentmodule:: cuda.core.experimental | ||
|
|
||
| ``cuda.core`` 0.5.x Release Notes | ||
| ================================= | ||
|
|
||
|
|
||
| Highlights | ||
| ---------- | ||
|
|
||
| None. | ||
|
|
||
|
|
||
| Breaking Changes | ||
| ---------------- | ||
|
|
||
| - Python ``bool`` objects are now converted to C++ ``bool`` type when passed as kernel | ||
| arguments. Previously, they were converted to ``int``. This brings them inline | ||
| with ``ctypes.c_bool`` and ``numpy.bool_``. | ||
|
Comment on lines
+19
to
+21
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Q: I think this no longer applies? Should we just add another entry to mention the perf improvement |
||
|
|
||
|
|
||
| New features | ||
| ------------ | ||
|
|
||
| None. | ||
|
|
||
|
|
||
| New examples | ||
| ------------ | ||
|
|
||
| None. | ||
|
|
||
|
|
||
| Fixes and enhancements | ||
| ---------------------- | ||
|
|
||
| None. | ||
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.
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.
Note: this block might add penalty to ctypes and graph conditional handle dispatch, since they are tried after NumPy. I dunno how much this costs, though.