Skip to content

Avoid including <cuda_pipeline_primitives.h> #5077

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bernhardmgruber
Copy link
Contributor

@bernhardmgruber bernhardmgruber commented Jun 27, 2025

This may be needed to expose DeviceTransform in CCCL.C, since the <cuda_pipeline_primitives.h> seems to not be available.

Copy link

copy-pr-bot bot commented Jun 27, 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 Jun 27, 2025
@bernhardmgruber bernhardmgruber changed the title Avoid including <cuda_pipeline_primitives.h> Avoid including <cuda_pipeline_primitives.h> Jun 27, 2025
@@ -339,10 +337,19 @@ _CCCL_DEVICE void memcpy_async_aligned(void* dst, const void* src, unsigned int
for (unsigned int offset = threadIdx.x * ldgsts_size_and_align; offset < bytes_to_copy;
offset += BlockThreads * ldgsts_size_and_align)
{
__pipeline_memcpy_async(
static_cast<char*>(dst) + offset, static_cast<const char*>(src) + offset, ldgsts_size_and_align);
asm volatile(
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks correct, I see that the pointers are marked as __restrict__

Should we also add _CCCL_RESTRICT to the function signatures?

@github-project-automation github-project-automation bot moved this from In Progress to In Review in CCCL Jun 27, 2025
@github-project-automation github-project-automation bot moved this from In Review to In Progress in CCCL Jun 27, 2025
@griwes
Copy link
Contributor

griwes commented Jun 27, 2025

I have cherry-picked this into #4847.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants