Skip to content

Make cuda::aligned_size_t available in a more appropriate header than <cuda/barrier> #997

Closed

Description

@jrhemstad

The cuda::aligned_size_t<N> type is currently defined in <cuda/std/barrier>.

This requires me to include <cuda/std/barrier> any time I wish to use cuda::aligned_size_t. This is especially problematic as merely including cuda/barrier prevents compiling with <sm_70.

cuda::aligned_size_t is useful independent of its usage with barrier.

I want to be able to use cuda::aligned_size_t without including <cuda(/std)/barrier>.

I'm thinking we could add it to <cuda/cstddef>?

Activity

  1. sleeepyjack commented on Aug 11, 2022

    @sleeepyjack
    Contributor

    Could this potentially land in v1.9.0?

  2. jrhemstad commented on Aug 12, 2022

    @jrhemstad
    CollaboratorAuthor

    You'd have to convince @wmaxey.

    It is a relatively simple change, so I'd be fine with sneaking it in if we can, but Wesley calls the shots 'round here.

  3. sleeepyjack commented on Aug 29, 2022

    @sleeepyjack
    Contributor

    @wmaxey could this be a candidate for v1.9.0?

    Also related: NVIDIA/libcudacxx#163

  4. added
    thrust
    libcu++
    and removed
    thrust
    on Feb 22, 2023
  5. miscco commented on Feb 23, 2023

    @miscco
    Contributor

    Rather than putting it in <cstddef> we should consider making <memory> partially available

  6. jrhemstad commented on Feb 23, 2023

    @jrhemstad
    CollaboratorAuthor

    Why <memory>?

  7. miscco commented on Feb 23, 2023

    @miscco
    Contributor

    Because the other aligned_meow stuff lives there

  8. jrhemstad commented on Feb 23, 2023

    @jrhemstad
    CollaboratorAuthor

    I think the closest thing would be std::align_val_t in <new> .

  9. wmaxey commented on Feb 23, 2023

    @wmaxey
    Member

    We could put in something like <cuda/memory|or something>. We eventually need to write an optimized memcpy and other memblah friends and it might make sense to live there.

  10. removed their assignment
    on May 1, 2023
  11. transferred this issue fromNVIDIA/libcudacxxon Nov 8, 2023
  12. moved this from Todo to In Review in CCCLon Jul 14, 2025
  13. moved this from In Review to Done in CCCLon Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    libcu++

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions