Skip to content
Commit 04f1063c authored by Zhigang Gong's avatar Zhigang Gong
Browse files

Avoid incorrect flag when create ocl memory object.



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: default avatarZhigang Gong <zhigang.gong@intel.com>
parent b0ee36d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment