Nvidia-smi not working after ubuntu update

Hi,
Since the update of ubuntu kernel, I cannot access my GPU.
I got this message when running nvidia smi :
“NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.”
Here is the first nvidia bug report :
nvidia-bug-report.log (2.2 MB)
Then I changed prime profile from “on demand” to “nvidia” and now nvidia-smi is working, but all my daily application (vs code firefox etc.) are running on the GPU. Before the GPU nvidia was only used with specific application like pytorch or tensorflow. On this mode I can access my GPU, but the computation are not working, I got this error message on tensorflow :
“Can’t find libdevice directory ${CUDA_DIR}/nvvm/libdevice. This may result in compilation or runtime failures, if the program we try to run uses routines from libdevice.
Searched for CUDA in the following directories:
./cuda_sdk_lib
/usr/local/cuda-11.8
/usr/local/cuda”
Here is a second bug report

I don’t understand why before the update, I never has to use prime profiles to manage the use of GPU and now I need it to access GPU.

I am stuck on this for the last 2 days, any help would be glad :)

Here is the second bug-reportwhen prime profile is on nvidia :
nvidia-bug-report.log_2.gz (353.3 KB)