I have a laptop with (Intel i5 CPU with Intel HD 4000 GPU integrated) and NVIDIA GT653M as discrete GPU.
I use the CPU as the host and the HD 4000 GPU as the device. both work on OpenCL 1.2
Q1: now when I am working with the clGetMemObjectInfo
() function to obtain the host pointer(CL_MEM_HOST_PTR
) of a memory buffer that wraps an array, sometimes the function return the pointer correctly and sometimes it returns 0. my code is very simple, I want to know why is this occurs?
Q2: can I configure the CPU to be used as host and device at the same time?