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

added sync for all threadsafe opencl objects #53

Merged
merged 1 commit into from
Sep 10, 2022
Merged

added sync for all threadsafe opencl objects #53

merged 1 commit into from
Sep 10, 2022

Conversation

benblack769
Copy link
Contributor

@benblack769 benblack769 commented Jul 27, 2022

All opencl objects except cl_kernel are guaranteed to be threadsafe. Adds Sync to all of them so that opencl objects can be shared by threads.

@kenba
Copy link
Owner

kenba commented Jul 29, 2022

Thank you for submitting this PR Benjamin.

Adding Sync to all OpenCL objects was considered in PR #6 and Issue #15 . We chose to add Send but not Sync.
I'm happy to reconsider adding Sync to specific OpenCL objects where there is a good reason to do so. Please explain why you need to add Sync to these objects.

Also, as described in the Contributing guide, please base PRs on the develop branch not the main branch.

@kenba kenba merged commit 83aca97 into kenba:main Sep 10, 2022
@kenba
Copy link
Owner

kenba commented Sep 10, 2022

Changes published to crates.io.

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

Successfully merging this pull request may close these issues.

2 participants