Search:

Type: Posts; User: fangq

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    2,180

    Re: matrix addition problem

    you can use clGetProgramBuildInfo with the CL_PROGRAM_BUILD_LOG option to get detailed compilation error/warning messages.

    http://www.khronos.org/registry/cl/sdk/ ... dInfo.html
  2. Re: are clCreateProgramWithSource & clBuildProgram thread-sa

    thank you so much David! that is really helpful.
    I followed your advice, and created buffers for all devices, now the code works beautifully!

    Just want to make sure, I leave the read-only...
  3. Re: are clCreateProgramWithSource & clBuildProgram thread-sa

    also, I saw your comments on memory transfer between multiple devices, can you explain this a bit more? or point me to the resources to explain what might be happening? thanks
  4. Re: are clCreateProgramWithSource & clBuildProgram thread-sa

    sorry for not being so careful reading your comments. Now I seem to get it. I modified the code and create multiple kernel objects for each device,setting arguments separately and pass it to...
  5. Re: are clCreateProgramWithSource & clBuildProgram thread-sa

    thank you again for your quick reply, but I am still not quite clear.

    let me ask this way: in your pseudo-code, the context and program are created for all devices, but kernel is created for each...
  6. Re: are clCreateProgramWithSource & clBuildProgram thread-sa

    thanks a lot David, I briefly tested the work-flow as suggested in your previous post, it seems to work very well!

    I have one more question: in the kernel parameter list, I have a scalar input to...
  7. Re: are clCreateProgramWithSource & clBuildProgram thread-sa

    ah, looks like I haven't really understood opencl :oops:

    I will definitely do more readings on this, but to get me started, I am wondering if you can give me some quick suggestion on what needs...
  8. Re: are clCreateProgramWithSource & clBuildProgram thread-sa

    hi David, thanks again for the insightful comments.

    My motivation of doing so is based on an observation: when running a simulation kernel on the GPU, my CPU load drops to very low. That means, if...
  9. Re: are clCreateProgramWithSource & clBuildProgram thread-sa

    thanks!

    just to make sure I understand, when I say "thread-safe", I meant calling the same function(s) simultaneously in multiple threads. Is this the same definition in your comment?

    For...
  10. Replies
    4
    Views
    1,679

    Re: memory alignment for struct members

    hi David

    I printed sizeof(KParam) inside the host and device and found the two sizes are different for the code I posted at nvidia's forum: for the host code, it is 180, for cl kernel, it is 192....
  11. are clCreateProgramWithSource & clBuildProgram thread-safe?

    I am working on a multi-threaded code to run an OpenCL kernel on several Compute Devices simultaneously. In this code, I first launch N threads, with N equal to the user specified work device count...
  12. Replies
    4
    Views
    1,679

    Re: memory alignment for struct members

    great, thank you for confirming on this. I feel a lot better now :)
  13. Replies
    4
    Views
    1,679

    memory alignment for struct members

    I had some troubles to use a structure in the constant memory to pass kernel parameters. I posted my code at nvidia's forum at

    http://forums.nvidia.com/index.php?showtopic=197734

    but so far...
Results 1 to 13 of 14