It looks like following is working also. Create a file /etc/modules-load.d/nvidia.conf with contents below and restart.
options nvidia NVreg_PreserveVideoMemoryAllocations=1 options nvidia NVreg_TemporaryFilePath=/run
It looks like following is working also. Create a file /etc/modules- load.d/ nvidia. conf with contents below and restart.
options nvidia NVreg_PreserveV ideoMemoryAlloc ations= 1 FilePath= /run
options nvidia NVreg_Temporary