Altera_Forum
Honored Contributor
8 years agoOutput Message: "...A host pointer is provided without also specifying one of..."
The full message I am getting on the terminal is :
Context callback: A host pointer is provided without also specifying one of CL_MEM_USE_HOST_PTR or CL_MEM_COPY_HOST_PTR
Context callback: A host pointer is provided without also specifying one of CL_MEM_USE_HOST_PTR or CL_MEM_COPY_HOST_PTR
Context callback: A host pointer is provided without also specifying one of CL_MEM_USE_HOST_PTR or CL_MEM_COPY_HOST_PTR The program seems to be working just fine. They are associated with each time I set the parameters of the kernel. uint *init_ptr = (uint *)malloc(sizeof(uint)); *init_ptr = 0; int *size_ptr = (int *)malloc(sizeof(int)); *size_ptr = SIZE; status = clSetKernelArg(well_kernel, 3, sizeof(cl_uint), seed_ptr); checkError(status, "Failed to set kernel arg 3"); status = clSetKernelArg(well_kernel, 4, sizeof(cl_uint), init_ptr); checkError(status, "Failed to set kernel arg 4"); status = clSetKernelArg(well_kernel, 5, sizeof(cl_int), size_ptr); checkError(status, "Failed to set kernel arg 5"); So, are those messages a problem?