Skip to content

Conversation

@EJainDev
Copy link
Contributor

Resolves issue #641 . Adds call to clRetainCommandQueue and clReleaseCommandQueue so that the user cannot accidentally release command queue while it is being used.

Copy link
Owner

@CNugteren CNugteren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see two issues with this PR:

  1. You are using OpenCL code outside of clpp11.hpp which will break the CUDA back-end.
  2. This retain and releasing can be done much cleaner and better inside the Queue class itself, that way you can never forget to release it, because the destructor will do that for you.

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