9 Replies Latest reply on Jul 29, 2015 5:19 AM by dipak

    Bug report: Hawaii returns no results when printf removed

    mz24cn

      I will post the details later. Could any AMD staff give me an email address so I can send you the files to reproduce the bug. A exe file (running on Windows 8/10 x86_64, no dll required) and an opencl source file are enough (since I don't wanna send host side code)?

       

      The correct results should be six numbers (returned by queue.enqueueReadBuffer). Hawaii returns zero results when printf (in opencl source) removed. If run again, it returns correct results. If the printf was reserved, both running return correct results. Spectre integrated GPU (A10-7870K) returns correct results whatever whether printf is removed.

       

      printf was removed: (comment out one line in opencl source: if (env->flags) printf("found: GID=%ld\n", GID);)

      Hawaii:

              build time: 10,372ms.

              run time: 187,969 microseconds.

              Found 0 results:

              run again: 5,587 microseconds.

              Found 6 results: 6,590 4,830 6,625 4,785 1,931 1,846

      Hawaii:

              build time: 10,366ms.

              run time: 189,547 microseconds.

              Found 0 results:

              run again: 5,499 microseconds.

              Found 6 results: 6,590 6,625 4,785 4,830 1,931 1,846

      Spectre:

              build time: 10,356ms.

              run time: 202,173 microseconds.

              Found 6 results: 1,846 1,931 4,830 4,785 6,590 6,625

              run again: 24,345 microseconds.

              Found 6 results: 1,846 1,931 4,785 4,830 6,590 6,625

       

      printf was reserved: (env->flags differs in first run and second run, so, only printf once for each GPU)

      Hawaii:

              build time: 9,831ms.

      found: GID=1846

      found: GID=1931

      found: GID=4785

      found: GID=4830

      found: GID=6590

      found: GID=6625

              run time: 807,821 microseconds.

              Found 6 results: 1,931 1,846 4,830 4,785 6,590 6,625

              run again: 594,972 microseconds.

              Found 6 results: 1,846 1,931 4,830 4,785 6,590 6,625

      Hawaii:

              build time: 10,906ms.

      found: GID=1846

      found: GID=1931

      found: GID=4785

      found: GID=4830

      found: GID=6590

      found: GID=6625

              run time: 860,503 microseconds.

              Found 6 results: 1,931 1,846 4,830 4,785 6,590 6,625

              run again: 634,349 microseconds.

              Found 6 results: 1,931 1,846 4,785 4,830 6,590 6,625

      Spectre:

              build time: 10,818ms.

      found: GID=1846

      found: GID=1931

      found: GID=4785

      found: GID=4830

      found: GID=6590

      found: GID=6625

              run time: 759,770 microseconds.

              Found 6 results: 1,931 1,846 4,830 4,785 6,590 6,625

              run again: 570,127 microseconds.

              Found 6 results: 1,931 1,846 4,830 4,785 6,590 6,625