Is it possible to allocate a buffer that is larger than the device memory (assuming a GPU)?
I'm pretty sure this:
clCreateBuffer(context,CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR,sizeof(float) * DATA_SIZE, inputdata, NULL);
does not work. but shouldn't this work?:
clCreateBuffer(context,CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR,sizeof(float) * DATA_SIZE, inputdata, NULL);
I seem to be having trouble getting it to work with my NVIDIA QUADRO FX 3800, but I heard of others that have had success allocating a buffer larger than the device memory on ATI cards.