clinfo (opencl) reports no devices with Nouveau driver

Bug #1999085 reported by Timur Tabi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mesa
New
Undecided
Unassigned
Nouveau Xorg driver
New
Undecided
Unassigned
OpenCL
New
Undecided
Unassigned

Bug Description

I have an Nvidia TU10x GPU installed and I'm using the Nouveau device driver. I cannot get OpenCL to work because it does not see any devices. I'm using Ubuntu 22.04.

I have installed the following packages:
linux-modules-extra-5.15.0-52-generic opencl-c-headers ocl-icd-opencl-dev clinfo ocl-icd-libopencl1 ocl-icd-dev mesa-opencl-icd

clinfo reports that a platform exists, but no devices are found:

  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

Revision history for this message
George Kraft (cynerva) wrote :

Hi, can you clarify how this relates to Charmed Kubernetes? Is this issue occurring in an Ubuntu pod on a Kubernetes cluster?

Changed in charmed-kubernetes-testing:
status: New → Incomplete
Revision history for this message
Timur Tabi (timur-tabi) wrote :

I don't know why the bug report says that. I didn't set it.

Revision history for this message
George Kraft (cynerva) wrote :

That's weird. Was this meant to be filed against OpenCL, Ubuntu, or something else? I can try to reassign it to the correct project if you can let me know where you want it.

Revision history for this message
Timur Tabi (timur-tabi) wrote :

It was meant to be filed against Ubuntu. According to the Nouveau guys, this should work, but they suspect that Ubuntu is not building Mesa correctly -- something about not specifying "opencl-spirv=true" when building, but I don't know enough about Mesa and OpenCL to know whether that's the case.

no longer affects: charmed-kubernetes-testing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.