Search:

Type: Posts; User: wrx

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    1,351

    Image/Buffer Objects : Which is fastest? When?

    Hi,

    I have some question about execution time of different memory objects .
    - Which among image or buffer objects is fastest ?
    - In which case/use ?
    - And why ?

    Is the following...
  2. Replies
    0
    Views
    1,103

    cl_khr_3d_image_writes support GPUs

    Hi,

    I work 3D image using buffer object and it can be useful (meaning faster) to work 3d image object for read from(supported) and write to(not supported) . If I need list of GPU which support ...
  3. Replies
    11
    Views
    2,782

    Re: First local memory work

    clEnqueueNDRangeKernel :


    -> I guess that is what I should use for define work-groups size? Is it the only way, or the right way?
    -> If I assign local work size, does work-group size define from...
  4. Replies
    11
    Views
    2,782

    Re: First local memory work

    Yes, I had comments to delete and I delete initalizing line too, sorry:


    ...
    unsigned int i;
    myBigLocalVariable[lx] = a[x];

    if(if(lx >0 && lx < LOCAL_MEM_SIZE * LOCAL_MEM_SIZE-1))...
  5. Thread: Vector offset!

    by wrx
    Replies
    1
    Views
    1,499

    Re: Vector offset!

    For offset, you should be sure to not overflow of array :



    Offset = 1;
    for (i = Offset; i < Len; i++)
    {
    v[i] = 1;
    }
  6. Replies
    11
    Views
    2,782

    Re: First local memory work

    I agree with you (I have no choice, you're right : ),and I agree that there is no interest to really use local memory in this case.

    For now, my questions are :
    Theoric:
    -> How to handle...
  7. Replies
    11
    Views
    2,782

    Re: First local memory work

    Thank you very much for taking time to answer.


    I'll meditate it, and take time to practice.
  8. Replies
    11
    Views
    2,782

    Re: First local memory work

    I'll do that but some are already complex for begin :
    http://developer.download.nvidia.com/compute/cuda/3_0/sdk/website/OpenCL/website/samples.html

    I "find" how to do work my little code :


    ...
  9. Replies
    11
    Views
    2,782

    First local memory work

    Hi,

    I do my first steps for local memory working and try to begin with this global memory working code :
    datas : a={0,1,2,3,....}, b={0,3,6,9,.....}




    __kernel void localTest(__global...
  10. Replies
    5
    Views
    2,078

    Re: quicksort on program scope : -36 error

    Let me ask some questions, and correct me if I am wrong :
    -> If I have (NxNxN)xM +2 buffer size(for image), how to manage the 2 bytes left? How to determine N? Is it the nearest and low value to...
  11. Replies
    5
    Views
    2,078

    Re: quicksort on program scope : -36 error

    Thanks! I had never heard this algorithm.

    I do it with quick selection algorithm and it's better :
    - before, with 3x3x2 filter, that was ok, but 3x3x3 filter crash with clEnqueueReadBuffer :...
  12. Replies
    5
    Views
    2,078

    quicksort on program scope : -36 error

    Hi,

    I'm working on image processing and I try to do median filter where we use sort.

    My median.cl file structure is as following :




    #define TYPE int
  13. Replies
    3
    Views
    2,868

    Re: Convolution with Wrapped Edges

    Hi,

    I'm in this situation. I work with buffers of 3D image (~maybe~ will working with image2D, 3D later) and I want to know if
    - using "gentype fmod (gentype x, gentype y)" will be fast...
  14. Re: Error:-42: Argument 1 of instuction 'selp':must be regis

    I feel little bit like I talk to myself . :)

    I don't know how name this (trick, solution, ... not really) but I will develop my working code.

    Part of kernel code was :


    .......
  15. Re: Error:-42: Argument 1 of instuction 'selp':must be regis

    So, technical support suggest to register as an NVIDIA developer by click to link, where I can't :

    You must have your parent or guardian complete the COPPA form and submit it to the...
  16. Re: Error:-42: Argument 1 of instuction 'selp':must be regis

    OK.

    The only similar error finding is here :
    http://forums.nvidia.com/index.php?showtopic=174885
    posted July 22, 2010 without any reply.

    I'll try to contact them, and post here if any...
  17. Re: Error:-42: Argument 1 of instuction 'selp':must be regis

    No, I haven't. Should I contact them?
    My first contact for OpenCL problem is always here . :)

    The problem propably come from me, but where? Finding a serious fault on technical aspect shouldn't...
  18. Error:-42: Argument 1 of instuction 'selp':must be register

    Hi,

    I have this error by changing static value in the kernel by arg value :



    My kernel :
  19. Replies
    4
    Views
    3,087

    Re: compiling and runing OpenCL code

    In the worst worst case, include files are available here : : :)

    http://www.khronos.org/registry/cl/
  20. Replies
    13
    Views
    2,855

    Re: Can't write in buffer

    OK, thank you!

    And I'll remember (this kind of) trick you told me with local memory when I'll try to improve my code.
  21. Replies
    13
    Views
    2,855

    Re: Can't write in buffer

    Yes, that's exactly what I meant by "transfer datas to GPU 2 times" and I did exactly what you wrote, and it had worked well.



    For now, I try to do some example on global memory only....
  22. Replies
    13
    Views
    2,855

    Re: Can't write in buffer

    So, the way to do by send datas to GPU 2 times works. My goal was to do it in 1 time on the kernel. If this is the only way to do that , it's OK for me. Else I'm open to suggestions.

    Thank you...
  23. Replies
    13
    Views
    2,855

    Re: Can't write in buffer

    -> P.S.: Should I do dilate, then erode operation one after another in 2 step , I mean transferring datas to GPU 2 times, first for dilate, second for erode?
  24. Replies
    13
    Views
    2,855

    Re: Can't write in buffer

    Isn't barrier supposed to synchronize work-item in work-group together, or it does it on work-group internally?



    I tried to do before and I tried now, with 3th argument in kernel like (brief...
  25. Replies
    13
    Views
    2,855

    Re: Can't write in buffer

    I tested it several time and the problem occurs when I write something to buffer.

    For exemple, the following code create correct image:



    __kernel void Dilate(__global unsigned char *a,...
Results 1 to 25 of 59
Page 1 of 3 1 2 3