44a884fd07ab31eb45caccaad4eb4df5d900c24c
Simple yet fancy GPU architecture fetching tool
gpufetch is a command-line tool written in C that displays the GPU information in a clean and beautiful way
Table of contents
1. Support
gpufetch supports NVIDIA GPUs under Linux only.
2. Installation (building from source)
You will need:
- C++ compiler (e.g,
g++) cmakemake- CUDA (NVIDIA backend)
- pciutils (optional)
To build gpufetch, just clone the repo and run ./build.sh:
git clone https://github.com/Dr-Noob/gpufetch
cd gpufetch
./build.sh
./gpufetch
- NOTE 1: It is recomended to install the
pciutilsdevelopment package, which is needed by gpufetch. If it is not installed, it will be downloaded and built automatically just to compile gpufetch. - NOTE 2: When building gpufetch, cmake may fail if it is unable to find the CUDA installation. If CUDA is installed but CMake does not find it, you need to pass the CUDA path to cmake. You can do this easily by editing directly the
build.shscript. For example:
cmake -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DCMAKE_CUDA_COMPILER_TOOLKIT_ROOT=/usr/local/cuda/ ..
3. Colors and style
By default, gpufetch will print the GPU logo with the system colorscheme. However, you can always set a custom color scheme, either
specifying "nvidia", or specifying the colors in RGB format:
./gpufetch --color nvidia (default color for NVIDIA)
./gpufetch --color 239,90,45:210,200,200:100,200,45:0,200,200 (example)
In the case of setting the colors using RGB, 4 colors must be given in with the format: [R,G,B:R,G,B:R,G,B:R,G,B]. These colors correspond to GPU art color (2 colors) and for the text colors (following 2). Thus, you can customize all the colors.
4. Bugs or improvements
Languages
C++
92.7%
CMake
4.7%
Shell
1.7%
Roff
0.9%

