[Mesa-dev] [Bug 107369] "volatile" in OpenCL code not recognized by POLARIS10 and KABINI

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 25 07:43:57 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=107369

            Bug ID: 107369
           Summary: "volatile" in OpenCL code not recognized by POLARIS10
                    and KABINI
           Product: Mesa
           Version: 18.0
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: gcp at sjeng.org
        QA Contact: mesa-dev at lists.freedesktop.org

https://github.com/CNugteren/CLBlast/issues/298
https://github.com/gcp/leela-zero/issues/1612

Using "volatile" in OpenCL kernels will generate an "unsupported initializer
for address space" error for the combinations of:

Mesa 18.1.3 (POLARIS10, DRM 3.23.0, 4.16.0-1-amd64, LLVM 6.0.1) 
Mesa 17.3.9 AMD KABINI (DRM 2.49.0 / 4.9.0-6-amd64, LLVM 5.0.1)

But works for:

Mesa 18.0.4 (POLARIS11 / DRM 3.23.0 / 4.16.13-1-MANJARO, LLVM 6.0.0)
Mesa 18.1.3 (POLARIS11, DRM 3.23.0, 4.16.18-1-MANJARO, LLVM 6.0.0)

So, this problem curiously seems to avoided by the POLARIS11 OpenCL support and
not specific to the Mesa version itself.

volatile has been legal in OpenCL code at least since OpenCL 1.1 and is used in
the above projects to improve register allocation (without which AMD hardware
gets a performance penalty).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180725/48590ffc/attachment.html>


More information about the mesa-dev mailing list