How to make my AMD GPU work with the Flatpak version of darktable?

I have Radeon RX 6600 and in order to use OpenCL I installed on Fedora the following rocm packages, not rusticl. DT with OpenCL works really well so far.

rocm-runtime-6.2.1-2.fc41.x86_64
rocminfo-6.2.1-1.fc41.x86_64
rocm-device-libs-18-10.rocm6.2.1.fc41.x86_64
rocm-comgr-18-10.rocm6.2.1.fc41.x86_64
rocm-opencl-6.2.1-5.fc41.x86_64
rocm-clinfo-6.2.1-5.fc41.x86_64

Though I compile DT from sources.