11 Replies Latest reply on Jan 31, 2018 5:08 AM by tugrul_512bit

    How to get OpenCL 1.2 on Ubuntu 16.04 x86_64?

    markswanson

      I've found some conflicting information.

       

      It seems OpenCL 1.2 is only possible on Ubuntu 14.04 (and you must downgrade the Linux kernel to 3.19):

      Recommended Open CL SDK for use with AMDGPU-PRO on Linux?

       

      Also, some AMD support folks recommend installing APP SDK 3.0, but other AMD support folks say that this is deprecated / incompatible with the newer amgdpu-pro drivers:

      Possible bug in AMD App SDK 3.0 install script?

       

      I'm trying various combinations, but I think the motherboard I'm using won't work because it provides an Intel graphics chip (i915) and doesn't provide any way to  disable it - and there seems to be a weird conflict with X11/RX 580/i915. I tried blacklisting the i915, but X11 still seems to find it (via fbdev iirc).

       

      So I've ordered a new motherboard and Ryzen CPU. When I get it, should I be able to use OpenCL += 1.2 with Ubuntu 16.04 or should I downgrade to 14.04? (and downgrade the kernel to 3.19?)

       

      Thanks!

        • Re: How to get OpenCL 1.2 on Ubuntu 16.04 x86_64?
          dipak

          APPSDK is no longer compatible with the amdgpu-pro, so you should not install appsdk with this driver.

          There is no conflicting information on those threads that you mentioned. Amdgpu-pro does not support SI cards, so, APPSDK with older graphics driver was suggested on this thread Recommended Open CL SDK for use with AMDGPU-PRO on Linux? .

          Rx580 is supported by the latest amdgpu-pro, so no need to downgrade in your case.

          • Re: How to get OpenCL 1.2 on Ubuntu 16.04 x86_64?
            markswanson

            What about the current ABI mismatches between X11 and the amdgpu-pro drivers?

             

            My Ubuntu 16.04 Xorg.0.log file shows:

            [ 6.562] (**) ModulePath set to "/opt/amdgpu-pro/lib/xorg/modules,/opt/amdgpu/lib/xorg/modules,/usr/lib/xorg/modules"
            [ 6.562] (II) The server relies on udev to provide the list of input devices.
            If no devices become available, reconfigure udev or disable AutoAddDevices.
            [ 6.562] (II) Loader magic: 0x5602a733fdc0
            [ 6.562] (II) Module ABI versions:
            [ 6.562]X.Org ANSI C Emulation: 0.4
            [ 6.562]X.Org Video Driver: 20.0
            [ 6.562]X.Org XInput driver : 22.1
            [ 6.562]

            X.Org Server Extension : 9.0

             

            ... slightly further down...

             

            [ 6.570] (II) LoadModule: "glx"
            [ 6.572] (II) Loading /opt/amdgpu-pro/lib/xorg/modules/extensions/libglx.so
            [ 6.590] (II) Module glx: vendor="X.Org Foundation"
            [ 6.590]compiled for 1.19.0, module version = 1.0.0
            [ 6.590]ABI class: X.Org Server Extension, version 10.0
            [ 6.590] (EE) module ABI major version (10) doesn't match the server's version (9)
            [ 6.590] (II) UnloadModule: "glx"
            [ 6.590] (II) Unloading glx
            [ 6.590] (EE) Failed to load module "glx" (module requirement mismatch, 0)
            [ 6.590] (II) LoadModule: "amdgpu"
            [ 6.590] (II) Loading /opt/amdgpu/lib/xorg/modules/drivers/amdgpu_drv.so
            [ 6.591] (II) Module amdgpu: vendor="X.Org Foundation"
            [ 6.591]compiled for 1.19.3, module version = 1.4.0
            [ 6.592]Module class: X.Org Video Driver
            [ 6.592]ABI class: X.Org Video Driver, version 23.0
            [ 6.592] (EE) module ABI major version (23) doesn't match the server's version (20)
            [ 6.592] (II) UnloadModule: "amdgpu"
            [ 6.592] (II) Unloading amdgpu
            [

            6.592] (EE) Failed to load module "amdgpu" (module requirement mismatch, 0)

             

             

            Should I use an older amdgpu-pro driver ?