Skip to content

[FEA]: cuda::barrier:arrival_token should not be constructible from integral types #354

Description

@ahendriksen

Is this a duplicate?

Area

libcu++

Is your feature request related to a problem? Please describe.

The type of barrier​::​arrival_token is unspecified by the standard: http://eel.is/c++draft/thread.barrier#class-7

Currently, constructing an arrival token from primitive types works because it is a type synonym for bool, uint64_t, or __phase_t, depending on the barrier. This code may break in the future.

Describe the solution you'd like

We should help users to not write non-portable code by by using a wrapper struct instead.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions