1 Reply Latest reply on Apr 9, 2011 10:23 AM by matze_de

    async_work_group_copy issue

    matze_de
      multiple async_work_group_copy problem

      Hello every one (new to opencl),

      i have a problem with async_work_group_copy.

      I have to multiple access data within a work-group and i tried to copy it to local memory for optimization.

       

      It works fine as long as i copy only one part of the needed data into local memory (pM_edge1 or pM_edge2). If i copy both, the data in the local memory is broken at a certain offset. There is no other local memory used in the kernel and i have no idea what i am doing wrong.  

      regards

       

       

      __private event_t events[2]; __local float3 p_edges_1[16*48]; __local float3 p_edges_2[16*48]; events[0] = async_work_group_copy(p_edges_1 , pM_edge1 + global_offset_p1,(size_t)(48*16),0); events[1] = async_work_group_copy(p_edges_2 , pM_edge2 + global_offset_p2,(size_t)(48*16),0); wait_group_events(2, events); [...] //acces p_edges_1[X] ... p_edges_2[Y]