• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    How to install OpenCL/Kronos/OpenGL on CM5-EVB

    Scheduled Pinned Locked Moved Pi CM5
    5 Posts 2 Posters 579 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tmb68
      last edited by

      Can anyone provide the steps required to install OpenCL/Kronos/OpenGL on the CM5-EVB?

      Looking for support for the Mali-G610, not seeing UserSpace files on ARM or Rockchip sites.
      Thanks,
      TMB

      G 2 Replies Last reply Reply Quote 0
      • G
        george @tmb68
        last edited by

        @tmb68 said in How to install OpenCL/Kronos/OpenGL on CM5-EVB:

        Can anyone provide the steps required to install OpenCL/Kronos/OpenGL on the CM5-EVB?
        Looking for support for the Mali-G610, not seeing UserSpace files on ARM or Rockchip sites.
        Thanks,
        TMB

        The released Ubuntu system image is already integrated with G610 driver by default

        1 Reply Last reply Reply Quote 0
        • T
          tmb68
          last edited by

          I was able to get the OpenGL glmark working with libgles2-mesa, and -dev, and mesa-utils install, but I am still stuck on OpenCL.

          When I try to compile and run a test OpenCL, I am getting :
          ClGetPlatformIDs (-1001)
          no platforms found.

          For example, for the RockPi4:
          https://wiki.radxa.com/Rockpi4/dev/install-opencl
          There is a mali-midgard package which installs the OpenCL backend for the Mali.

          So, I would expect there are packages available for generic ARM, NEON, MALI-G610 somewhere. Once installed, I should be able to see all of those as platforms to run OpenCL against.

          Thanks,
          TMB

          G 1 Reply Last reply Reply Quote -1
          • G
            george @tmb68
            last edited by

            @tmb68 The following figure shows the test results of OpenCl, and the testing method will be provided later.

            coolpi@Ubuntu:~/share/clpeak/build$ ./clpeak 
            
            Platform: ARM Platform
            arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '7'.
              Device: Mali-LODX r0p0
                Driver version  : 2.1 (Linux ARM64)
                Compute units   : 4
                Clock frequency : 1000 MHz
            
                Global memory bandwidth (GBPS)
                  float   : 21.35
                  float2  : 23.18
                  float4  : 24.05
                  float8  : 12.08
                  float16 : 11.06
            
                Single-precision compute (GFLOPS)
                  float   : 447.12
                  float2  : 476.20
                  float4  : 472.35
                  float8  : 440.72
                  float16 : 416.19
            
                Half-precision compute (GFLOPS)
                  half   : 447.25
                  half2  : 888.31
                  half4  : 921.77
                  half8  : 897.50
                  half16 : 856.49
            
                No double precision support! Skipped
            
                Integer compute (GIOPS)
                  int   : 126.55
                  int2  : 127.18
                  int4  : 126.64
                  int8  : 125.27
                  int16 : 125.79
            
                Integer compute Fast 24bit (GIOPS)
                  int   : 126.64
                  int2  : 127.23
                  int4  : 126.79
                  int8  : 125.30
                  int16 : 125.76
            
                Transfer bandwidth (GBPS)
                  enqueueWriteBuffer              : 7.31
                  enqueueReadBuffer               : 8.25
                  enqueueWriteBuffer non-blocking : 7.30
                  enqueueReadBuffer non-blocking  : 8.26
                  enqueueMapBuffer(for read)      : 61.83
                    memcpy from mapped ptr        : 9.57
                  enqueueUnmap(after write)       : 61.21
                    memcpy to mapped ptr          : 9.40
            
                Kernel launch latency : 19.97 us
            
            1 Reply Last reply Reply Quote 0
            • G
              george @tmb68
              last edited by

              @tmb68 The OpenCL library file has been updated. Run the following command to update it:

              sudo apt-get update
              sudo apt-get upgrade
              
              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post