1 00:00:06,620 --> 00:00:10,150 Okay, I need to open a secure shell session to my remote machine. 2 00:00:12,609 --> 00:00:19,219 And in the remote machine, which is the name gpu, we are going to start with LSPCI 3 00:00:19,219 --> 00:00:25,829 K, which is showing the PCI bus, including the kernel modules that are currently in use. 4 00:00:27,300 --> 00:00:29,160 So where is it? 5 00:00:29,800 --> 00:00:35,020 Here it is the 3D controller. It is an Nvidia L4 GPU. 6 00:00:35,840 --> 00:00:40,695 That's an expensive GPU, that is, that is created to do AI calculations at 7 00:00:40,695 --> 00:00:45,549 a small scale and as you can see it is using the Nouveau driver. 8 00:00:46,049 --> 00:00:52,515 That is problematic because in order to perform AI operations on an Nvidia GPU you need 9 00:00:52,515 --> 00:00:58,980 a specific feature called cuda and CUDA is not available for the open source source driver. 10 00:01:00,100 --> 00:01:04,459 So what do we need to do? Well, we need to add some repositories to start it. 11 00:01:06,519 --> 00:01:12,106 So we are on a Fedora distribution and on fedora you need RPM fusion for additional 12 00:01:12,106 --> 00:01:17,693 RPMs and the most important one that I'm loading here is a second repository and the 13 00:01:17,693 --> 00:01:23,280 second repository is for non free packages and that happens to include the Nvidia driver. 14 00:01:24,129 --> 00:01:30,420 So yes, I want to make these changes, then I can start 15 00:01:30,420 --> 00:01:36,710 using them. So what are we going to do? Well, I need 16 00:01:36,709 --> 00:01:43,000 to install Akmod Nvidia as well as Xorg X11 DRV, Nvidia CUDA. 17 00:01:43,920 --> 00:01:49,060 Now in case you are wondering, how do you know? Well, if it is about proprietary drivers, there 18 00:01:49,060 --> 00:01:54,200 is one solution only and that is to do some research. And it really depends on the driver 19 00:01:54,200 --> 00:01:59,340 that you are trying to install and the Linux distribution where you are trying to install it. 20 00:02:00,920 --> 00:02:06,900 But this is the procedure for my current version of Fedora and as you can see it 21 00:02:06,900 --> 00:02:12,879 is going to download half a gig and after installation it will have added much more. 22 00:02:13,719 --> 00:02:18,060 That is because this is not only the Nvidia driver, it also goes with the CUDA framework. 23 00:02:20,590 --> 00:02:24,550 As it's a new repository, it's prompting for the GPG key for the repository. So 24 00:02:24,550 --> 00:02:28,509 yes is the appropriate answer and then you'll need to wait a little bit. 25 00:02:30,810 --> 00:02:33,189 You might see there are some deprecation messages here. 26 00:02:33,710 --> 00:02:37,520 Deprecation messages is that it is better not to use this anymore. 27 00:02:37,520 --> 00:02:41,330 But it still works and as you can see it is complete. 28 00:02:41,909 --> 00:02:46,773 Now depending on the Fedora release that you are using, you 29 00:02:46,773 --> 00:02:51,636 might need AK mod force, but on modern Fedora that is 30 00:02:51,636 --> 00:02:56,500 no longer required. What this required is Dracut minus minus force. 31 00:02:57,479 --> 00:03:03,199 That is because we just installed a new driver and this new driver should be in the INIT RAMFS 32 00:03:03,199 --> 00:03:08,919 of this Fedora system so that you can use it right from the moment that the system is booting. 33 00:03:10,020 --> 00:03:15,290 That might take a little bit because it needs to generate a new init ramfs and it 34 00:03:15,290 --> 00:03:20,560 needs to detect all hardware and make sure that it is reflected in the inner ramfs. 35 00:03:21,719 --> 00:03:25,180 Now that we are done reboot is unavoidable. 36 00:03:26,000 --> 00:03:32,714 Let me open root shell because it's more convenient for this hardware related stuff and 37 00:03:32,714 --> 00:03:39,428 then LSPCI K and what is it showing us here? Kernel modules Nvidia DRM in 38 00:03:39,428 --> 00:03:46,142 Nvidia so that means that the Nvidia driver was installed successfully and to test if 39 00:03:46,142 --> 00:03:52,857 this is really the Nvidia has this utility Nvidia SMI Nvidia SMI is giving information 40 00:03:52,857 --> 00:03:59,571 about the current hardware that it has found. Here you can see that the Nvidia 41 00:03:59,571 --> 00:04:06,285 L4 GPU was perfectly found and here's a bonus DNF install Y NV top that's 42 00:04:06,285 --> 00:04:13,000 a cool utility as well if you are into Nvidia hardware. 43 00:04:13,560 --> 00:04:18,735 So NV Top is showing activity on the GPU right now it isn't doing anything 44 00:04:18,735 --> 00:04:23,910 but if GPU performance is important for you this is the go to utility.