Search:

Type: Posts; User: kang13

Search: Search took 0.00 seconds.

  1. Re: how to do task parallel and data parallel on the same device

    thank you very much for the information, i will see if i can use workgroup to achieve my goal on my algorithm.
  2. how to do task parallel and data parallel on the same device

    i have one algorithm, that can be implemented using 34 work items executing the same kernel (clEnqueueNDRangeKernel), i.e. SIMD (data parallel method) in OpenCL. in this case, only 34 work items are...
  3. Re: how to implement serial calculation in kernel code?

    i think i have set the work items to be in the same workgroup..........
  4. Re: how to implement serial calculation in kernel code?

    yes, the following steps in each thread need to wait for the serial result to proceed. does putting barrier(CLK_GLOBAL_MEM_FENCE); before and after this piece of code enough to synchronize all other...
  5. Re: how to implement serial calculation in kernel code?

    hi, thanks for your reply. but i have two pieces of such code in my kernel, if i do it on the cpu, then i would need to break the kernel into 3 kernel codes? and pass the value back and forth betwee...
  6. how to implement serial calculation in kernel code?

    The following piece of code is part of my kernel code for my calculation, because other part code are quite independent parallel that can be executed on each work item (no data synchronization...
  7. Re: how to debug opencl kernel program running on GPU?

    One way is to create a debug output buffer, send that as argument to the kernel and write some value you want to inspect to it. Then copy the values back to host and compare with a CPU based...
  8. Re: how to debug opencl kernel program running on GPU?

    Have a look at clGetProgramBuildInfo() with CL_PROGRAM_BUILD_LOG. It basically gives you the compiler output, which shows you where your syntax errors are.[/quote]

    I know how to get the syntax...
  9. how to debug opencl kernel program running on GPU?

    I can debug my program for CPU using printf or gdb support, and the result correct, but when i set the device to GPU, the result is incorrect. does anyone know how i can debug the kernel code for...
  10. Replies
    4
    Views
    3,128

    Re: does opencl support inline assembly?

    then how can opencl code access assembler instructions, such as if the GPU has assembly instruction addc?
  11. Replies
    4
    Views
    3,128

    Re: does opencl support inline assembly?

    i see, thanks!

    yes X86. then if i want to implement part of the code assembly, how can i call them from the main opencl program?
  12. Replies
    4
    Views
    3,128

    does opencl support inline assembly?

    hi i am a OpenCL beginner, and have two general questions:

    1. Can i include C inline assembly code in my openCL code?

    2. Does OpenCL support addtion and subtraction with carry?

    thanks!
Results 1 to 12 of 13