Skip to content
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

Which types should implement Send/Sync? #3

Open
bheisler opened this issue Nov 25, 2018 · 0 comments
Open

Which types should implement Send/Sync? #3

bheisler opened this issue Nov 25, 2018 · 0 comments
Labels
Enhancement An enhancement or change to existing functionality/documentation. Help Wanted Input requested Intermediate Intermediate difficulty. May require knowledge of CUDA (or reading the Driver API docs)

Comments

@bheisler
Copy link
Owner

I'm a bit fuzzy on how these traits behave and when it's appropriate to implement them. I think most of the types in RustaCUDA don't implement them since most of the types contain a raw pointer, but the CUDA API is thread safe so it should be safe to share most types between threads.

@bheisler bheisler added Enhancement An enhancement or change to existing functionality/documentation. Code Help Wanted Input requested Intermediate Intermediate difficulty. May require knowledge of CUDA (or reading the Driver API docs) and removed Code labels Nov 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement An enhancement or change to existing functionality/documentation. Help Wanted Input requested Intermediate Intermediate difficulty. May require knowledge of CUDA (or reading the Driver API docs)
Projects
None yet
Development

No branches or pull requests

1 participant