AnsweredAssumed Answered

Problem with OpenCL 2.0

Question asked by kevinmanhn on Dec 18, 2014
Latest reply on Jan 7, 2015 by kevinmanhn


I have an APU desktop computer A10 7850K, AMD Radeon(TM) R7 Graphics.

When I compiled the code, it understands the OpenCL 2.0 but I have two problems:

1. Whenever I placed a printf command in he kernel code, the result after running is totally wrong. However, if I ran this code in OpenCL 1.2, it worked fine.

2. I ran EnqueueDevice samples from AMD, it seem to be working fine. Yet, when I ran my simple code of enqueue device (Dynamic Parallelism feature), it locked up my computer.

The simple code looks like this:

__kernel void Mykernel(...)

{     //My kernel code


    ndrange_t ndrange1=ndrange_1D(1);

    queue_t defQ = get_default_queue();   

    enqueue_kernel(defQ, CLK_ENQUEUE_FLAGS_WAIT_KERNEL,  ndrange,

    ^{ printf("%d\n", get_global_id(0)); });




Can someone please explain it to me?

Thank you in advance.