Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

  1. #1

    Lightbulb Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    At last it works.

    Trying to get OpenCL with AMD APU Ryzen 3 3200G.
    I had many troubles with AMD ROCm.

    Uninstalled it and installed headless amdgpu-pro OpenCL drivers:

    1. Download amdgpu-pro from AMD website. I chose amdgpu-pro-20.40-1147287-sle-15.2.tar.xz for Vega64.

    2. Run

    Code:
    amdgpu-pro-install --opencl=legacy,pal --headless
    You may add:
    "-y" for non-interactive install
    "--no-dkms" for non-DKMS install. IDK whether it is needed or not.

    3. Reboot after install.


    Amdgpu-pro has OpenCL image support.
    OpenCL works 4-8 times faster than with ROCm.
    Tested with clpeak and luxmark-linux64-v3.1.
    luxmark on CPU works faster than with ROCm - ILL additionally using GPU.
    FAHBench 2.3.2 works at last.
    SVP 4.5 works nicely with Pro, but with ROCm drops frames and hangs VLC.

    Blender benchmark-launcher 2.0.5: requires 'GLIBC_2.27'.
    Run benchmark-launcher-cli or as described here.
    On CPU - 100% load and warms up, on GPU (OpenCL) - zero CPU load.
    But scene bmw27 takes 8,5 min on CPU compared to 14,3 min on GPU.

    I have POCL installed, but still cannot use CPU for OpenCL.

  2. #2

    Default Re: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    Code:
    :~> glxinfo | grep -i OpenGL
    OpenGL vendor string: AMD
    OpenGL renderer string: AMD RAVEN (DRM 3.33.0, 5.3.18-lp152.57-default, LLVM 9.0.1)
    OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.2
    OpenGL core profile shading language version string: 4.60
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.2
    OpenGL shading language version string: 4.60
    OpenGL context flags: (none)
    OpenGL profile mask: compatibility profile
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.2
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    Previously this was

    Code:
    glxinfo | grep -i opengl
    OpenGL vendor string: X.Org
    OpenGL renderer string: AMD RAVEN (DRM 3.36.0, 5.5.5-3.g5157fff-default, LLVM 9.0.1)
    OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.0.0
    OpenGL core profile shading language version string: 4.60
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.0.0
    OpenGL shading language version string: 4.60
    OpenGL context flags: (none)
    OpenGL profile mask: compatibility profile
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.0.0
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    ILL installing amdgpu-pro has changed amdgpu driver from Mesa's to AMD's.

    Previous tests were conducted with video memory = 1 GiB. Possibly Blender test needs more.

  3. #3

    Default Re: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    Does AMD unofficially support APUs with amdgpu-pro driver?

  4. #4

    Default Re: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    With amdgpu-pro OpenCL headless driver:

    Code:
    :~> clpeak
    
    Platform: AMD Accelerated Parallel Processing
      Device: gfx902
        Driver version  : 3180.7 (PAL,HSAIL) (Linux x64)
        Compute units   : 8
        Clock frequency : 1250 MHz
    
        Global memory bandwidth (GBPS)
          float   : 42.63
          float2  : 44.12
          float4  : 45.13
          float8  : 46.01
          float16 : 45.59
    
        Single-precision compute (GFLOPS)
          float   : 1252.46
          float2  : 1251.55
          float4  : 1249.05
          float8  : 1238.10
          float16 : 1225.67
    
        half-precision compute (GFLOPS)
          half   : 1250.89
          half2  : 2421.75
          half4  : 2409.56
          half8  : 2381.20
          half16 : 2237.11
    
        Double-precision compute (GFLOPS)
          double   : 79.14
          double2  : 79.10
          double4  : 79.01
          double8  : 78.85
          double16 : 78.41
    
        Integer compute (GIOPS)
          int   : 252.97
          int2  : 252.96
          int4  : 252.96
          int8  : 252.96
          int16 : 252.94
    
        Transfer bandwidth (GBPS)
          enqueueWriteBuffer         : 42.38
          enqueueReadBuffer          : 14.94
          enqueueMapBuffer(for read) : 35320.46
            memcpy from mapped ptr   : 14.29
          enqueueUnmap(after write)  : 78951.60
            memcpy to mapped ptr     : 14.34
    
        Kernel launch latency : 48.96 us

    With ROCm driver (v. 3.3 and 3.10):

    Code:
    :~> clpeak
    
    Platform: AMD Accelerated Parallel Processing
      Device: gfx902+xnack
        Driver version  : 3212.0 (HSA1.1,LC) (Linux x64)
        Compute units   : 11
        Clock frequency : 1250 MHz
    
        Global memory bandwidth (GBPS)
          float   : 12.66
          float2  : 12.75
          float4  : 12.76
          float8  : 12.74
          float16 : 12.20
    
        Single-precision compute (GFLOPS)
          float   : 202.43
          float2  : 202.28
          float4  : 201.77
          float8  : 200.75
          float16 : 198.48
    
        half-precision compute (GFLOPS)
          half   : 202.33
          half2  : 396.88
          half4  : 394.08
          half8  : 389.46
          half16 : 384.83
    
        Double-precision compute (GFLOPS)
          double   : 12.76
          double2  : 12.76
          double4  : 12.71
          double8  : 12.71
          double16 : 12.58
    
        Integer compute (GIOPS)
          int   : 40.81
          int2  : 40.81
          int4  : 40.81
          int8  : 40.80
          int16 : 40.79
    
        Transfer bandwidth (GBPS)
          enqueueWriteBuffer         : 2.11
          enqueueReadBuffer          : 5.34
          enqueueMapBuffer(for read) : 33925.49
            memcpy from mapped ptr   : 5.23
          enqueueUnmap(after write)  : 70409.30
            memcpy to mapped ptr     : 5.41
    
        Kernel launch latency : -500964480.00 us
    Legacy = orca drivers are not working with Vega = GCN5.

  5. #5

    Default Re: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    After updating Mesa to 20.3.3:

    Code:
    :~> glxinfo | grep -i OpenGL
    OpenGL vendor string: AMD
    OpenGL renderer string: AMD RAVEN (DRM 3.40.0, 5.3.18-lp152.57-default, LLVM 9.0.1)
    OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.3
    OpenGL core profile shading language version string: 4.60
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.3
    OpenGL shading language version string: 4.60
    OpenGL context flags: (none)
    OpenGL profile mask: compatibility profile
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.3
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    Then updating kernel to 5.3.18-lp152.60-default:

    Code:
    :~> glxinfo | grep -i OpenGL
    OpenGL vendor string: AMD
    OpenGL renderer string: AMD RAVEN (DRM 3.33.0, 5.3.18-lp152.60-default, LLVM 9.0.1)
    OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.3
    OpenGL core profile shading language version string: 4.60
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.3
    OpenGL shading language version string: 4.60
    OpenGL context flags: (none)
    OpenGL profile mask: compatibility profile
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.3
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    ILL Mesa 3D and amdgpu-pro are fighting with each other.
    Amdgpu-pro is using dkms to get in its drivers.

    If someone have some clarifications - please, provide them.

  6. #6

    Default Re: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    Minimal install with Leap 15.2 + amdgpu-pro-20.40-1147287-sle-15.2.tar.xz with default Mesa 3D, X11, no DKMS:

    Choose only
    Code:
    amdgpu-core
    amdgpu-pro-core
    amdgpu-pro-versionlist 
    amdgpu-versionlist 
    clinfo-amdgpu-pro (gives info only)
    ocl-icd-amdgpu-pro
    ocl-icd-amdgpu-pro-devel (possibly not needed)
    opencl-amdgpu-pro-comgr
    opencl-amdgpu-pro-icd
    To get packages unzip files from AMD archive with driver to a needed folder. Then use folder as repository.
    More info at https://en.opensuse.org/SDB:AMDGPU-PRO .
    Needs checks after kernel update.

    Drivers versions:
    Code:
    :~> glxinfo | grep -i OpenGL
    OpenGL vendor string: X.Org
    OpenGL renderer string: AMD RAVEN (DRM 3.33.0, 5.3.18-lp152.63-default, LLVM 9.0.1)
    OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.3.4
    OpenGL core profile shading language version string: 4.50
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.3.4
    OpenGL shading language version string: 4.50
    OpenGL context flags: (none)
    OpenGL profile mask: compatibility profile
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.3.4
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,056
    Blog Entries
    15

    Default Re: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    Quote Originally Posted by Svyatko View Post
    After updating Mesa to 20.3.3:

    Code:
    :~> glxinfo | grep -i OpenGL
    OpenGL vendor string: AMD
    OpenGL renderer string: AMD RAVEN (DRM 3.40.0, 5.3.18-lp152.57-default, LLVM 9.0.1)
    OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.3
    OpenGL core profile shading language version string: 4.60
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.3
    OpenGL shading language version string: 4.60
    OpenGL context flags: (none)
    OpenGL profile mask: compatibility profile
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.3
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    Then updating kernel to 5.3.18-lp152.60-default:

    Code:
    :~> glxinfo | grep -i OpenGL
    OpenGL vendor string: AMD
    OpenGL renderer string: AMD RAVEN (DRM 3.33.0, 5.3.18-lp152.60-default, LLVM 9.0.1)
    OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.3
    OpenGL core profile shading language version string: 4.60
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.3
    OpenGL shading language version string: 4.60
    OpenGL context flags: (none)
    OpenGL profile mask: compatibility profile
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.3
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    ILL Mesa 3D and amdgpu-pro are fighting with each other.
    Amdgpu-pro is using dkms to get in its drivers.

    If someone have some clarifications - please, provide them.
    Hi
    No downgrading of driver here (but I'm on Tumbleweed, plus use multiple GPU's), I'm using the kernel driver. You need to slow down!!!

    NO DKMS in use... hence the --dkms, use default openSUSE Mesa etc. You are on a Raven card, it for sure needs later packages, running on Leap is probably going to be an issue...

    Code:
    switcherooctl launch -g 1 glxinfo | grep -i OpenGL
    
    OpenGL vendor string: AMD
    OpenGL renderer string: Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.12-1-default, LLVM 11.0.1)
    OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.4
    OpenGL core profile shading language version string: 4.60
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.4
    OpenGL shading language version string: 4.60
    OpenGL context flags: (none)
    OpenGL profile mask: compatibility profile
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.4
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    The only files I have installed are;

    Code:
     zypper se -si -r 5
    Loading repository data...
    Reading installed packages...
    
    S  | Name                       | Type    | Version           | Arch   | Repository
    ---+----------------------------+---------+-------------------+--------+--------------------------------
    i  | amdgpu-core                | package | 20.40-1147287     | noarch | AMD amdgpu Pro local repository
    i  | amdgpu-pro-core            | package | 20.40-1147287     | noarch | AMD amdgpu Pro local repository
    i+ | amdgpu-versionlist         | package | 20.40-1147287     | noarch | AMD amdgpu Pro local repository
    i+ | clinfo-amdgpu-pro          | package | 20.40-1147287     | x86_64 | AMD amdgpu Pro local repository
    i  | libdrm-amdgpu              | package | 1:2.4.100-1147287 | x86_64 | AMD amdgpu Pro local repository
    i  | libdrm-amdgpu-common       | package | 1.0.0-1147287     | noarch | AMD amdgpu Pro local repository
    i  | ocl-icd-amdgpu-pro         | package | 20.40-1147287     | x86_64 | AMD amdgpu Pro local repository
    i  | opencl-amdgpu-pro-comgr    | package | 20.40-1147287     | x86_64 | AMD amdgpu Pro local repository
    i+ | opencl-amdgpu-pro-icd      | package | 20.40-1147287     | x86_64 | AMD amdgpu Pro local repository
    i+ | opencl-orca-amdgpu-pro-icd | package | 20.40-1147287     | x86_64 | AMD amdgpu Pro local repository
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #8

    Default Re: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    But you are installing libdrm-amdgpu?

    Quote Originally Posted by malcolmlewis View Post
    You are on a Raven card, it for sure needs later packages, running on Leap is probably going to be an issue...
    I had hangs with FF when switched to X11:XOrg repo.
    Using Leap 15.2 kernel is Ok.

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,056
    Blog Entries
    15

    Default Re: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    Quote Originally Posted by Svyatko View Post
    But you are installing libdrm-amdgpu?
    Hi
    Yes, replied in other thread....

    Code:
    ldd /usr/bin/blender | grep drm
        libva-drm.so.2 => /usr/lib64/libva-drm.so.2 (0x00007f2a9ff0b000)
        libdrm.so.2 => /opt/amdgpu/lib64/libdrm.so.2 (0x00007f2a9fcf2000)
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  10. #10

    Default Re: Leap + TW: OpenCL on AMD with Mesa 3D + headless amdgpu-pro

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Yes, replied in other thread....

    Code:
    ldd /usr/bin/blender | grep drm
        libva-drm.so.2 => /usr/lib64/libva-drm.so.2 (0x00007f2a9ff0b000)
        libdrm.so.2 => /opt/amdgpu/lib64/libdrm.so.2 (0x00007f2a9fcf2000)
    But for what?
    I'm trying right now to use system without this package.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •