I have installed NVIDIA CUDA from here.
This should include the graphics driver.
However it looks like I’m still using the integrated (Intel) graphics card:
$ lspci -nnk | grep -iA2 vga 00:02.0 VGA compatible controller : Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b] Subsystem: Acer Incorporated [ALI] Device [1025:1264] Kernel driver in use: i915 -- 01:00.0 VGA compatible controller : NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] [10de:1c20] (rev a1) Subsystem: Acer Incorporated [ALI] Device [1025:1265] Kernel modules: nouveau, nvidia_drm, nvidia
How can I switch from the integrated to the dedicated card?