OpenCL in container

For several years I have used CUDA inside of my containers, thanks to the awesome @simos blog posts. Now I have an OpenCL app that I’d like to get up and running, but it seems the drivers are not being linked. clinfo returns Number of platforms 0 in the container, while at the host it lists my GPU. I guess some additional linking steps are necessary in the X11 profile. I found this post but it’s 4 years old and may be outdated. Anyone can please help me with this?

I am using the snap installation of LXD, both host and container are Ubuntu 20.04 and my GPU is a 3060 RTX.

I would be also very interested if it is possible to use OpenCL from the GPU residing in a host in an incus container.