At the end of last year, I replaced the opensuse in the dual system of my Thinkpad T450 with Manjaro, and installed CUDA for the record. Basic Installation NVIDIA graphics card installation It is relatively simple to install a graphics card in the Manjaro system. It has a command sudo mhwd -a [pci or usb connection] [free or nonfree drivers] 0300 in
We need to install NVIDIA's driver, just use the following line of command to do it sudo mhwd -a pci nonfree 0300 Wait for the installation to complete and use the following command to check whether the installation is complete nvidia-smi My graphics card model is GeForce 940M and the graphics card driver version is 415.27. CUDA Installation Installation Commands Manjaro's CUDA installation is also very simple, just one line of command to complete it sudo pacman -S cuda cudnn Verify Installation After completion, we enter the installation path of cuda, my path is /opt/cuda, you can use the following command to copy the CUDA sample program to your user home directory, and then compile the program
Now use the nvcc compiler to compile the CUDA sample program. This will take longer, about half an hour. Wait for the compilation to complete and use the following command to verify whether it is successful.
Check whether the result of the last line in the window is pass. If it is, it means that CUDA is installed successfully. Dual Graphics Card Configuration My computer has two graphics cards, one is an Intel integrated graphics card and the other is a NVIDIA discrete graphics card. Install the graphics card switcher There are some problems with Manjaro's dual graphics card configuration, and Bumblebee still has some problems. Use the following command to reinstall
In order to prevent the inability to enter the login interface after restart, the following configuration is required
Test graphics card performance Use the following shell command to install the graphics card test program
It should be noted that for all programs run later, if you need to use a discrete graphics card, you need to add the prefix optirun or primusrun in front of the command.
The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: MySQL 8.0.22 installation and configuration graphic tutorial
>>: Vue encapsulates the public function method of exporting Excel data
Connections can be used to query, update, and est...
The default remote repository of Nexus is https:/...
Sometimes you may encounter a situation where a S...
Sometimes you need to install certain dependencie...
1 Introduction Good coding habits are qualities t...
Maybe you are using include files here, which is u...
Today I will share with you a good-looking counte...
Table of contents Why is IN slow? Which is faster...
Development Pain Points During the development pr...
Table of contents 1. Create a stored function 2. ...
Array deduplication is usually encountered during...
What is MyCAT A completely open source large data...
This article has compiled some so-called specific...
Recently, I happened to be in touch with the vue+...
Regarding the issue that JavaScript strict mode d...