Search:

Type: Posts; User: zakketto

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    4,280

    Re: mapping buffer host on GPU device

    i tryed to use clenqueueMapBuffer/clenqueueUnmapMemObj and the test was good. i have compared the result and if i use clenqueueMapBuffer/clenqueueUnmapMemObj the time execution is reduced to about...
  2. Replies
    4
    Views
    1,494

    Re: use pointer in kernel code

    thanks for reply. I'm working on an image, but instead of using a range of 2D, I'm using 1D.
  3. Replies
    4
    Views
    1,494

    Re: use pointer in kernel code

    grazie per avermi risposto. Sto elaborando una immagine, perņ invece di utilizzare un 2d, sto utilizzo 1d.
  4. Replies
    4
    Views
    1,494

    use pointer in kernel code

    hi, i would like to optimize the code of my algorithm trying to use pointers.
    in my code i have a cycle within which the calculation always an expression.



    __kernel void cicle(__global uchar *...
  5. Replies
    7
    Views
    4,280

    Re: mapping buffer host on GPU device

    But in this way i must change also the kernel arguments?
    Before using clEnqueueMapBuffer i have used two buffer, one to pass the image to the kernel function, and one to take the image in output.
    ...
  6. Replies
    7
    Views
    4,280

    Re: mapping buffer host on GPU device

    thank you david...
    i created the buffer using clCreateBuffer. if i want use clEnqueueMapBuffer() / clEnqueueUnmapBuffer() , i need again to create two buffer of clCreateBuffer type for host input e...
  7. Replies
    7
    Views
    4,280

    mapping buffer host on GPU device

    hi, I'm trying to perform calculations on a sequence of images. The images are written on a single buffer at intervals of 10 seconds which I apply the Sobel filter.
    Instead of changing the buffer on...
  8. Replies
    2
    Views
    1,891

    Re: How to use tex2D

    Sorry...This is the real error
    :117: error: incompatible type initializing 'int', expected 'float4' out_val_f=tex2D(sampler,(float2)(xf,yf));
  9. Replies
    2
    Views
    1,891

    How to use tex2D

    Hi to everyone.
    I want to do an algorithm of image rotation. The code is like this



    __global__ void Rotate(__read_only image2d_t imageIn, uchar4 * output, int width, int height, float angle)...
  10. Re: Problem with image object and clEnqueueReadImage

    Thank you very much...i pass the problem. Now i don't use the read the buffer with clEnqueueReadImage but i use clEnqueueReadBuffer.
  11. Problem with image object and clEnqueueReadImage

    Hello, I'm new in this forum, so hello to everyone.
    I have a problem with buffer when i try to use image object.
    Well, i'm trying to do an example of Opencl that take an image and return a copy of...
Results 1 to 11 of 18