3 Replies Latest reply on Aug 10, 2018 3:53 AM by dipak

    Sorting through Boost::Compute gives erroneous result

    ymhsieh0226

      Hello,

      I'm trying to use a W8100 with OpenCL to do data-sorting through Boost.Compute.  The machine we use has three OpenCL implementations, and only AMD w8100 gives incorrect result.  The code we use is posted at:

      https://pastebin.com/JJ8QBivL

       

      And the results are the following:

      --------------------------------------------

      33:Hawaii:OpenCL 1.2 AMD-APP (2639.3)

      Before:

      33 36 27 -35 43 -15 36 42 -1 -29 12 -23 40 9 13 -24 -10 -24 22 -14 -39 18 17 -21 32 -20 12 -27 17 -15 -21 -48 -28

      After :

      -48 -39 -35 -29 -28 -27 -24 -24 -23 -21 -21 -20 -15 -14 -10 -1 -10 -1 9 12 12 13 17 17 18 22 27 32 36 36 40 42 43

       

      33:Intel(R) HD Graphics Skylake Desktop GT2:OpenCL 2.0 beignet 1.4 (git-591d3873)

      Before:

      33 36 27 -35 43 -15 36 42 -1 -29 12 -23 40 9 13 -24 -10 -24 22 -14 -39 18 17 -21 32 -20 12 -27 17 -15 -21 -48 -28

      After :

      -48 -39 -35 -29 -28 -27 -24 -24 -23 -21 -21 -20 -15 -15 -14 -10 -1 9 12 12 13 17 17 18 22 27 32 33 36 36 40 42 43

       

       

      33:Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz:OpenCL 2.0 (Build 37)

      Before:

      33 36 27 -35 43 -15 36 42 -1 -29 12 -23 40 9 13 -24 -10 -24 22 -14 -39 18 17 -21 32 -20 12 -27 17 -15 -21 -48 -28

      After :

      -48 -39 -35 -29 -28 -27 -24 -24 -23 -21 -21 -20 -15 -15 -14 -10 -1 9 12 12 13 17 17 18 22 27 32 33 36 36 40 42 43

      --------------------------------------------

      Does any one has similar experience and or know where the problem is? 

       

       

      Thanks,

      Yo-Ming