Blender cuda and optix not working

My device:
Acer nitro 5 [AN515-45]
Nvidia RTX 3060 + Ryzen 5 5600H
Fedora 35
Blender version- 2.93.5 from flatpak

The issue:
Blender cuda and optix renders are very slow, approximately same as CPU render times.
It took 3 minutes and 47 seconds to render Blender BMW scene which normally takes 25-30 seconds but the GPU usage is 100% while rendering. In the same scene, CPU took 4 min and 28 seconds

I have done:

  • This problem happened when I tried to reinstall graphics driver since my external monitor is not working after an update, so I thought reinstalling driers might work, and display is now working.
    Before that blender worked fine
  • Followed RPM fusion site to remove and install NVIDIA drivers
  • Installed xorg-x11-drv-nvidia-cuda-libs, xorg-x11-drv-nvidia-cuda

More info:
when executing rpm --query --list xorg-x11-drv-nvidia-libs | grep -P '\.so(\.[123])?$'

/usr/lib/gbm/nvidia-drm_gbm.so
/usr/lib/libGLESv1_CM_nvidia.so.1
/usr/lib/libGLESv2_nvidia.so.2
/usr/lib/libnvidia-allocator.so.1
/usr/lib/libnvidia-fbc.so.1
/usr/lib/vdpau/libvdpau_nvidia.so.1
/usr/lib64/gbm/nvidia-drm_gbm.so
/usr/lib64/libGLESv1_CM_nvidia.so.1
/usr/lib64/libGLESv2_nvidia.so.2
/usr/lib64/libnvidia-allocator.so.1
/usr/lib64/libnvidia-cfg.so.1
/usr/lib64/libnvidia-egl-gbm.so.1
/usr/lib64/libnvidia-fbc.so.1
/usr/lib64/libnvidia-ngx.so.1
/usr/lib64/libnvidia-vulkan-producer.so
/usr/lib64/libnvoptix.so.1
/usr/lib64/vdpau/libvdpau_nvidia.so.1

libcuda.so is missing?also lot others missing compared to Cuda - Fedora Project Wiki

/usr/lib64/nvidia/libGL.so.1
/usr/lib64/nvidia/libOpenCL.so.1
/usr/lib64/nvidia/libXvMCNVIDIA.so.1
/usr/lib64/nvidia/libcuda.so
/usr/lib64/nvidia/libcuda.so.1
/usr/lib64/nvidia/libnvcuvid.so.1
/usr/lib64/nvidia/libnvidia-cfg.so.1
/usr/lib64/nvidia/libnvidia-compiler.so.1
/usr/lib64/nvidia/libnvidia-glcore.so
/usr/lib64/nvidia/libnvidia-glcore.so.1
/usr/lib64/nvidia/libnvidia-ml.so.1
/usr/lib64/nvidia/libnvidia-opencl.so.1
/usr/lib64/nvidia/libnvidia-tls.so.1
/usr/lib64/nvidia/tls/libnvidia-tls.so
/usr/lib64/nvidia/tls/libnvidia-tls.so.1
/usr/lib64/vdpau/libvdpau_nvidia.so
/usr/lib64/vdpau/libvdpau_nvidia.so.1
/usr/lib/nvidia/libGL.so.1
/usr/lib/nvidia/libOpenCL.so.1
/usr/lib/nvidia/libXvMCNVIDIA.so.1
/usr/lib/nvidia/libcuda.so
/usr/lib/nvidia/libcuda.so.1
/usr/lib/nvidia/libnvcuvid.so.1
/usr/lib/nvidia/libnvidia-cfg.so.1
/usr/lib/nvidia/libnvidia-compiler.so.1
/usr/lib/nvidia/libnvidia-glcore.so
/usr/lib/nvidia/libnvidia-glcore.so.1
/usr/lib/nvidia/libnvidia-ml.so.13.5.2-3.fc17.x86_64
/usr/lib/nvidia/libnvidia-opencl.so.1
/usr/lib/nvidia/libnvidia-tls.so.1
/usr/lib/nvidia/tls/libnvidia-tls.so
/usr/lib/nvidia/tls/libnvidia-tls.so.1
/usr/lib/vdpau/libvdpau_nvidia.so
/usr/lib/vdpau/libvdpau_nvidia.so.1

I am not a pro when it comes to stuff like this, so thank you in advance for your help :raised_hands:

Reinstalled fedora again :tired_face:
Now everything working fine blender optix works as expected
even though it’s working, rpm --query --list xorg-x11-drv-nvidia-libs | grep -P '\.so(\.[123])?$ does not seem to have libcuda. :confused:

/usr/lib64/gbm/nvidia-drm_gbm.so
/usr/lib64/libGLESv1_CM_nvidia.so.1
/usr/lib64/libGLESv2_nvidia.so.2
/usr/lib64/libnvidia-allocator.so.1
/usr/lib64/libnvidia-cfg.so.1
/usr/lib64/libnvidia-egl-gbm.so.1
/usr/lib64/libnvidia-fbc.so.1
/usr/lib64/libnvidia-ngx.so.1
/usr/lib64/libnvidia-vulkan-producer.so
/usr/lib64/libnvoptix.so.1
/usr/lib64/vdpau/libvdpau_nvidia.so.1

No idea what could be a problem?

Try installing (or reinstalling) xorg-x11-drv-nvidia-cuda*.
That should give you both the cuda and cuda libs packages for the nvidia drivers.

I note that you said above you already did that but it certainly would not hurt to do a reinstall. Also, your rpm query was for the xorg-x11-drv-nvidia-libs package. Possibly retry it for the xorg-x11-drv-nvidia-cuda-libs package.

@computersavvy I reinstalled entire OS now. should I need to

try that? Its working fine now. Will it break again while reinstalling🤔

Just a thought, if it’s working don’t “fix” it. All kidding aside, if it is working, and you’re satisfied that what you expect to happen when using Blender with your setup, is indeed what is happening, then it wouldn’t be unreasonable to assume that you have solved your issue. Could you please select the comment that solved the issue for you so others will easily find the solution to similar problems?

My reply was based on this comment about missing cuda libs. Your next post says you already reinstalled the OS and are concerned about a reinstall of a particular package.

If it is working fine and you are happy then it is your choice whether you leave it as-is or whether there is fine tuning you need to do. In general, a reinstall of a package should not break anything.