You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NVML library does not support some of the queries for GPUs coming before the
43
+
The *NVML library* does not support some of the queries for GPUs coming before the
28
44
Kepler microarchitecture. Anything starting at GeForce 600, GeForce 800M and
29
45
successor should work fine. For more information about supported GPUs please
30
46
take a look at the [NVML documentation](http://docs.nvidia.com/deploy/nvml-api/nvml-api-reference.html#nvml-api-reference).
31
47
32
48
Build
33
49
-----
34
50
35
-
CMAKE is used as build manager.
51
+
Two libraries are required:
52
+
53
+
* The *NVIDIA Management Library* (*NVML*) which comes with the GPU driver.
54
+
* This queries the GPU for information.
55
+
* The *ncurses* library driving the user interface.
56
+
* This makes the screen look beautiful.
57
+
36
58
37
-
To build the binary on Linux:
59
+
## Distribution Specific Installation Process
60
+
61
+
### Ubuntu / Debian
62
+
63
+
- NVIDIA drivers (see [Ubuntu Wiki](https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia) or [Ubuntu PPA](https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa) or [Debian Wiki](https://wiki.debian.org/NvidiaGraphicsDrivers#NVIDIA_Proprietary_Driver))
64
+
- CMake, ncurses and git
65
+
```bash
66
+
sudo apt install cmake libncurses5-dev git
67
+
```
68
+
- NVTOP
69
+
- Follow the [NVTOP Build](#nvtop-build)
70
+
71
+
### Fedora / RedHat / CentOS
72
+
73
+
- NVIDIA drivers, **CUDA required for nvml libraries** (see [RPM Fusion](https://rpmfusion.org/Howto/NVIDIA))
74
+
- CMake, ncurses and git
75
+
```bash
76
+
sudo dnf install cmake ncurses-devel git
77
+
```
78
+
- NVTOP
79
+
- Follow the [NVTOP Build](#nvtop-build)
80
+
81
+
### OpenSUSE
82
+
83
+
- NVIDIA drivers (see [SUSE Support Database](https://en.opensuse.org/SDB:NVIDIA_drivers))
84
+
- CMake, ncurses and git
85
+
```bash
86
+
sudo zypper install cmake ncurses-devel git
87
+
```
88
+
- NVTOP
89
+
- Follow the [NVTOP Build](#nvtop-build)
90
+
91
+
### Archlinux
92
+
93
+
- NVIDIA drivers (see [Archlinux wiki](https://wiki.archlinux.org/index.php/NVIDIA))
94
+
- CMake, ncurses and git
95
+
```bash
96
+
sudo pacman -S cmake ncurses git
97
+
```
98
+
- NVTOP
99
+
- The `nvtop` AUR package
100
+
- Follow the [NVTOP Build](#nvtop-build)
101
+
102
+
## NVTOP Build
38
103
39
104
```bash
40
-
mkdir build &&cd build
105
+
git clone https://github.com/Syllo/nvtop.git
106
+
mkdir -p nvtop/build &&cd nvtop/build
41
107
cmake ..
108
+
109
+
# If it errors with "Could NOT find NVML (missing: NVML_INCLUDE_DIRS)"
110
+
# try the following command instead, otherwise skip to the build with make.
111
+
cmake .. -DNVML_RETRIEVE_HEADER_ONLINE=True
112
+
42
113
make
43
114
make install # You may need sufficent permission for that (root)
44
115
```
45
116
46
-
The build system support multiple build type (-DCMAKE_BUILD_TYPE):
117
+
The build system supports multiple build type (e.g. -DCMAKE_BUILD_TYPE=Optimized):
47
118
48
119
* Release: Binary without debug information
49
120
* RelWithDebInfo: Binary with debug information
50
121
* Debug: Compile warning flags and address/undefined sanitizer (For development only)
51
122
* Optimized: Build with architecture specific optimisations (May be not portable across machines with different processor)
0 commit comments