-
Notifications
You must be signed in to change notification settings - Fork 315
Fix LaunchConfig.grid unit conversion when cluster is set #868
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
+204
−11
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6941bcb
Initial plan
Copilot 445b3e9
Fix LaunchConfig.grid unit conversion when cluster is set
Copilot b9ca1bc
Address PR feedback: add docstring, tests, and release notes
Copilot 681540b
Address PR review feedback: fix docstring, rename release notes, simp…
Copilot 1c05792
Move grid conversion from LaunchConfig to native config conversion
Copilot ebc42c2
Combine cluster checks and enhance thread_block_cluster example
Copilot 50866b8
[pre-commit.ci] auto code formatting
pre-commit-ci[bot] 114f0f9
Fix whitespace issues: remove trailing spaces from empty lines
Copilot 035c91b
Add 0.X.Y-notes.rst reference to release.rst for doc rendering
Copilot 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
| 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.X.Y Release Notes | ||
| ================================= | ||
|
|
||
| Released on TBD | ||
|
|
||
|
|
||
| Highlights | ||
| ---------- | ||
|
|
||
| - Fix for :class:`LaunchConfig` grid parameter unit conversion when thread block clusters are used. | ||
|
|
||
|
|
||
| Breaking Changes | ||
| ---------------- | ||
|
|
||
| - **LaunchConfig grid parameter interpretation**: When :attr:`LaunchConfig.cluster` is specified, the :attr:`LaunchConfig.grid` parameter now correctly represents the number of clusters instead of blocks. Previously, the grid parameter was incorrectly interpreted as blocks, causing a mismatch with the expected C++ behavior. This change ensures that ``LaunchConfig(grid=4, cluster=2, block=32)`` correctly produces 4 clusters × 2 blocks/cluster = 8 total blocks, matching the C++ equivalent ``cudax::make_hierarchy(cudax::grid_dims(4), cudax::cluster_dims(2), cudax::block_dims(32))``. | ||
|
|
||
|
|
||
| New features | ||
| ------------ | ||
|
|
||
| None. | ||
|
|
||
|
|
||
| New examples | ||
| ------------ | ||
|
|
||
| None. | ||
|
|
||
|
|
||
| Fixes and enhancements | ||
| ---------------------- | ||
|
|
||
| - Fix :class:`LaunchConfig` grid unit conversion when cluster is set (addresses issue #867). |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.