How to confirm GPU support in Ubuntu 22

I’d like to confirm that the Ubuntu 22 kernel installed has GPU support. Any suggestions?

Hello @davec25

For desktop, you can install glmark2-es2-wayland to check the GPU performance.

$ sudo apt install glmark2-es2-wayland
$ glmark2-es2-wayland

Thanks. I’m running headless as I plan to use the GPU for image processing. Can you think of another way? lspci doesn’t report anything and lshw reports 4 CPUs and a 5ith one disabled.

your best bet is for using the mali openCL libraries to make use of the gpu compute power for your applications.

cheers

It definitely looks like the ubuntu 22 image provided doesn’t support the GPU. Am I missing something?

root@Khadas:/var/log# clinfo
Number of platforms 1
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 22.0.5
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA

Platform Name Clover
Number of devices 0

NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, …) Clover
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, …) No devices found in platform [Clover?]
clCreateContext(NULL, …) [default] No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform

ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.14
ICD loader Profile OpenCL 3.0
root@Khadas:/var/log#