NVIDIA / NVIDIA/cccl

Add `cuda::std::is_sufficiently_aligned` and consider deprecating `cuda::is_aligned`

Open
#5,947 3 comments 2 reactions 1 assignee Claimed by @fbusato View on GitHub
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

@mhoemmen made me aware of C++26's [`cuda::std::is_sufficiently_aligned`](https://en.cppreference.com/w/cpp/memory/is_sufficiently_aligned.html), which we regularly need in our code., so we should implement it.

We already have `cuda::is_aligned`, which differs that it takes the alignment as function parameter instead of as a template parameter. We should decide to keep or deprecate it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.