Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

cuda::barrier is default constructible for some reason, while cuda::std::barrier is not #83

Closed
brycelelbach opened this issue Nov 30, 2020 · 1 comment
Milestone

Comments

@brycelelbach
Copy link
Collaborator

https://godbolt.org/z/Ka6GKb

http://eel.is/c++draft/thread.barrier.class

Neither should be default constructible.

@brycelelbach brycelelbach added this to the 2.0.0 milestone Nov 30, 2020
@griwes
Copy link
Collaborator

griwes commented Nov 30, 2020

It's default constructible so that you can put it into shared memory (including the future where there's dynamic init for that - unless you can refer to the block size variables in shared variable construction somehow?).

@griwes griwes closed this as completed Nov 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants