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

Avoid incorrect flag when create ocl memory object. #181

Merged
merged 1 commit into from
Mar 3, 2016

Conversation

gongzg
Copy link
Contributor

@gongzg gongzg commented Mar 3, 2016

If there is already a CL_MEM_USE_HOST_PTR, we should not
add CL_MEM_COPY_HOST_PTR. According to the OpenCL spec:
"
CL_MEM_COPY_HOST_PTR and
CL_MEM_USE_HOST_PTR are mutually exclusive.
"

Signed-off-by: Zhigang Gong [email protected]

If there is already a CL_MEM_USE_HOST_PTR, we should not
add CL_MEM_COPY_HOST_PTR. According to the OpenCL spec:
"
CL_MEM_COPY_HOST_PTR and
CL_MEM_USE_HOST_PTR are mutually exclusive.
"

Signed-off-by: Zhigang Gong <[email protected]>
@karlrupp
Copy link
Collaborator

karlrupp commented Mar 3, 2016

Thanks for your contribution!

karlrupp added a commit that referenced this pull request Mar 3, 2016
OpenCL: Avoid incorrect flag when create ocl memory object.
@karlrupp karlrupp merged commit cdcf992 into viennacl:master Mar 3, 2016
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