3 Replies Latest reply on Jun 14, 2010 10:57 AM by genaganna

    Can anybody give me a sample code of OPENCL task parallel ?

    zhngzjn

      I ran the CLINFO.exe on several PCs , but no device passed the "Queue properties: Out of Order " test . 

      Can I do task parallel programming with out "out of order execution" supported ?

        • Can anybody give me a sample code of OPENCL task parallel ?
          dominik_g

          You can use multiple command-queues to do that. You probably also have to use multiple threads and contexts to get it working with the current implementation.

            • Can anybody give me a sample code of OPENCL task parallel ?
              zhngzjn

              Thank you for your advices. It seems that using multiple context does not help . I think I have to use a multi-thread lib.

              The opencl specification says, under task parallelling mode , user can :

              -  using vector data types implemented by the device,
              -  enqueuing multiple tasks, and/or
              -  enqueing native kernels developed using a programming model orthogonal to OpenCL.

              Unfortunately, my devices support neither out_of_order nor native kernel executions.

                • Can anybody give me a sample code of OPENCL task parallel ?
                  genaganna

                   

                  Originally posted by: zhngzjn Thank you for your advices. It seems that using multiple context does not help . I think I have to use a multi-thread lib.

                   

                  The opencl specification says, under task parallelling mode , user can :

                   

                  -  using vector data types implemented by the device, -  enqueuing multiple tasks, and/or -  enqueing native kernels developed using a programming model orthogonal to OpenCL.

                   

                  Unfortunately, my devices support neither out_of_order nor native kernel executions.

                   

                  you can expect native kernel execution in upcomming releases.