I want to use the intel iGPU connected to my monitor and nVidia GPU only to work with CUDA.
Currently (thanks to recent versions of Xorg, kernel and nvidia driver) I do not need to configure xorg.conf for nvidia or intel driver be correctly loaded (I have a blank xorg.conf). I just choose iGPU or PCIe as primary display from the BIOS and the corresponding driver is correctly loaded. With either drivers, lspci shows the two hardware available (I guess it’s because I have multi-GPU enabled from the BIOS)
If I select PCIe, the nvidia driver is loaded and I can use CUDA in Blender as GPU compute. The issue is that the render consumes all graphics resources while working and system becomes slow and is difficult to do anything on the computer while rendering is working. I clarify that I use a Blender version with precompiled CUDA Kernel (I have not installed CUDA on the system).
If I select iGPU, the intel driver is loaded correctly, but CUDA is not available in Blender when the intel driver is loaded. So this last I say is what I want. With the intel driver loaded and the monitor connected to the iGPU, be able to use nVidia CUDA in Blender.
Actually, I do not care where the monitor should be connected. I want the intel iGPU handle the graphics part, while I can use the nvidia GPU with CUDA in Blender.