Search:

Type: Posts; User: krit

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,411

    Re: Data not copied from host to device

    I copied the pixel data to an buffer instead of an image2d men and that seem to work:



    __kernel void luminance(__read_only image2d_t input,
    __write_only image2d_t...
  2. Replies
    5
    Views
    1,411

    Re: Data not copied from host to device

    I tried to use the buffer (clCreateBuffer) and that worked without any problems.

    I think the sampler is correct. The same for the image format. But I also tried uint for read/write colors in...
  3. Replies
    5
    Views
    1,411

    Re: Data not copied from host to device

    Thanks

    Thanks, I fixed the NDRange as well as the working group size to:



    size_t clLocalWorkSize[2] = {1, 1};
    size_t clGlobalWorkSize[2] = {luminanceRect.width(),...
  4. Replies
    5
    Views
    1,411

    Data not copied from host to device

    I have a byte array with values in RGBA format and tried to copy the array as an image to the device memory. But the content of the image on the device doesn't contain anything.

    I tried to copy...
Results 1 to 4 of 5