Skip to content

clean up some allocator and memory utilities#6939

Merged
ericniebler merged 2 commits intoNVIDIA:mainfrom
ericniebler:allocator-traits-cleanups
Dec 10, 2025
Merged

clean up some allocator and memory utilities#6939
ericniebler merged 2 commits intoNVIDIA:mainfrom
ericniebler:allocator-traits-cleanups

Conversation

@ericniebler
Copy link
Contributor

Description

while working on #5975, i found it necessary to make a few small changes to libcudacxx's allocator machinery, mostly to work around MSVC compiler bugs. this PR collects those changes into one package.

  • replace uses of enable_if with concepts portability macros and if constexpr
  • replace conditional compilation of calls to construct_at and destroy_at with calls to __construct_at and __destroy_at
  • suppress deprecation warnings that cuda::std::allocator is triggering on itself.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

* replace use of enable_if with concepts portability macros and `if
  constexpr`
* replace conditional compilation of calls to `construct_at` and
  `destroy_at` with calls to `__construct_at` and `__destroy_at`
* suppress deprecation warnings that `cuda::std::allocator` is
  triggering on itself.
@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Dec 10, 2025

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.

@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Progress in CCCL Dec 10, 2025
@ericniebler
Copy link
Contributor Author

/ok to test 9184a30

@ericniebler
Copy link
Contributor Author

/ok to test 7560ec1

@github-project-automation github-project-automation bot moved this from In Progress to In Review in CCCL Dec 10, 2025
@ericniebler ericniebler marked this pull request as ready for review December 10, 2025 22:33
@ericniebler ericniebler requested a review from a team as a code owner December 10, 2025 22:33
@ericniebler ericniebler requested a review from wmaxey December 10, 2025 22:33
@ericniebler ericniebler enabled auto-merge (squash) December 10, 2025 22:33
@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 2h 27m: Pass: 100%/91 | Total: 1d 19h | Max: 1h 50m | Hits: 82%/204100

See results here.

@ericniebler ericniebler merged commit 81dfb87 into NVIDIA:main Dec 10, 2025
105 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Dec 10, 2025
Comment on lines +106 to +107
_CCCL_TEMPLATE(class _Tp, class... _Args)
_CCCL_REQUIRES(is_constructible_v<_Tp, _Args...>)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should change that in all overloads and __construct_at

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

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants