Skip to content

[libcu++] Version bump buffer and resource wrappers - #7833

Merged
miscco merged 1 commit into
NVIDIA:mainfrom
pciolkosz:version_bump_buffer_and_type_erased_wrappers
Mar 2, 2026
Merged

miscco merged 1 commit into
NVIDIA:mainfrom
pciolkosz:version_bump_buffer_and_type_erased_wrappers

Conversation

@pciolkosz

Copy link
Copy Markdown
Contributor

We changed the ABI of buffer and type erased wrappers in #7623 and #7727.

We need to add special version bump namespace to them until the next major version, so objects using old and new versions fail to link

@pciolkosz
pciolkosz requested a review from a team as a code owner February 27, 2026 22:28
@pciolkosz
pciolkosz requested a review from griwes February 27, 2026 22:28
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Feb 27, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Feb 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 4h 17m: Pass: 100%/99 | Total: 3d 08h | Max: 4h 16m | Hits: 74%/254549

See results here.

@miscco
miscco merged commit a91db6e into NVIDIA:main Mar 2, 2026
117 checks passed
@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Backport failed for branch/3.3.x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin branch/3.3.x
git worktree add -d .worktree/backport-7833-to-branch/3.3.x origin/branch/3.3.x
cd .worktree/backport-7833-to-branch/3.3.x
git switch --create backport-7833-to-branch/3.3.x
git cherry-pick -x a91db6e2a022a7aa03b37873f0d4caf5ac81281d

miscco pushed a commit to miscco/cccl that referenced this pull request Mar 2, 2026
wmaxey added a commit that referenced this pull request Mar 3, 2026
* [libcu++] Add explicit alignment argument to buffer construction (#7623)

* Add explicit alignment argument to buffer

* Fix format

* Review feedback

* Apply suggestions from code review

Co-authored-by: Michael Schellenberger Costa <[email protected]>

* Fix format

* Fix missing include

---------

Co-authored-by: anon <users.noreply.github.com>
Co-authored-by: Michael Schellenberger Costa <[email protected]>

* [libcu++] Add dynamic_accessibility_property added to all resources (#7727)

* Add dynamic_accessibility_property to all memory resources

* Fix forward property test

* Workaround for gcc 7

* Review feedback

* Address review comments

* Fix merge conflict

* Fix replacment issue

---------

Co-authored-by: Michael Schellenberger Costa <[email protected]>

* Version bump buffer and resource wrappers (#7833)

* Compilation fixes

---------

Co-authored-by: pciolkosz <[email protected]>
Co-authored-by: Wesley Maxey <[email protected]>
andralex added a commit to andralex/cccl that referenced this pull request Nov 4, 2026
The class grew from one cudaError_t to the status object, its type identity and
name, and the source location (24 to 88 bytes). A type thrown across shared-library
boundaries cannot change layout under its old mangled name within the 4.x ABI, so the
class and the hidden friends it defines move into _CCCL_BEGIN_NAMESPACE_ABI_VER4_BUMP,
as buffer, resizable_buffer and any_resource did in NVIDIA#7833. Objects built against the
previous layout now have a different mangled name: mixing them fails to link or to
match a handler rather than reading the wrong bytes. The static_assert in the macro
flags the brackets for removal at the next ABI version.

The forward declarations of __throw_cuda_error move with the class: a hidden friend
is declared in the class's innermost enclosing namespace, and leaving the declarations
one namespace up would make every qualified call ambiguous.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants