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
1. CSS3 animation ☺CSS3 animations are much easie...
1. Environmental Preparation CentOS Linux release...
1. iframe definition and usage The iframe element...
Table of contents MySQL Client/Server Protocol If...
Table of contents 1. Build the operating environm...
<br />Original: http://www.alistapart.com/ar...
Result:Implementation Code html <div class=...
This article uses examples to explain the princip...
During system maintenance, you may need to check ...
Install 8.0.13 based on MySQL 6.1.3. MySQL 8.0.13...
Recently, I need to implement a cascading selecti...
Cleanly uninstall MySQL. Personally tested, this ...
What is HTTP Compression Sometimes, relatively la...
The action of the form is different from the URL j...
<br />This article is mainly to let beginner...