Commit Graph

23 Commits

Author SHA1 Message Date
Dr-Noob
82ea16fc3d [v0.30] Fix warning in printer 2025-10-16 20:01:14 +02:00
Dr-Noob
6589de9717 [v0.30] Reorganize attributes in printer and add CUs attr for AMD 2025-10-16 19:53:48 +02:00
Dr-Noob
5df85aea2c [v0.30] Add uarch detection to AMD GPUs
Similarly to NVIDIA and Intel GPUs, we now detect microarchitecture,
also with manufacturing process and specific chip name. We infer all
of this from the gfx name (in the code we use the term llvm_target),
altough it's not clear yet that this method is completely reliable (see
comments for more details). In the future we might want to replace that
with a better way. Once we have the gfx name, we *should* be able to
infer the specific chip, and from the chip we can easily infer the
microarchitecture.

This commit also includes some refactorings and code improvements on
the HSA backend.
2025-10-15 08:23:28 +02:00
Dr-Noob
b29b17d14f [v0.30] Add support for AMD GPUs
Adds very basic support for AMD (experimental). The only install
requirement is ROCm. Unlike NVIDIA, we don't need the CUDA equivalent
(HIP) to make gpufetch work, which reduces the installation
requirements quite significantly.

Major changes:

* CMakeLists:
  - Make CUDA not compiled by default (since we now may want to target
    AMD only)
  - Set build flags on gpufetch cmake target instead of doing
    "set(CMAKE_CXX_FLAGS". This fixes a warning coming from ROCm.
  - Assumes that the ROCm CMake files are installed (should be fixed
    later)

* hsa folder: AMD support is implemented via HSA (Heterogeneous System
  Architecture) calls. Therefore, HSA is added as a new backend to
  gpufetch. We only print basic stuff for now, so we may need more
  things in the future to give full support for AMD GPUs.

NOTE: This commit will probably break AUR packages since we used to
build CUDA by default, which is no longer the case. The AUR package
should be updated and use -DENABLE_CUDA_BACKEND or -DENABLE_HSA_BACKEND
as appropriate.
2025-10-12 12:34:56 +02:00
Dr-Noob
d120f9a1cd [v0.23] Add --logo-short/long. Closes #11 2022-01-23 10:55:26 +01:00
Dr-Noob
8fbf97c47a [v0.21] Add verbose option. Fix CUDA driver initialization message when verbose output is used 2021-12-27 22:37:51 +01:00
Dr-Noob
4e0e6b5ab5 [v0.20] Rename CUDA topology struct to improve consistency 2021-12-19 11:34:05 +01:00
Dr-Noob
e7477610e1 [v0.20] Always use C++ includes when possible for consistency 2021-12-19 11:30:10 +01:00
Dr-Noob
44a884fd07 [v0.11] Print peak performance in Intel iGPU 2021-12-09 20:28:07 +01:00
Dr-Noob
1663a36135 [v0.11] Fetch and print max Intel iGPU frequency using sysfs 2021-12-09 20:18:39 +01:00
Dr-Noob
844377f17a [v0.11] Add support for printing EUs (currently only in Gen9/Gen9.5) 2021-12-08 11:15:59 +01:00
Dr-Noob
2034bac006 [v0.11] Displaying Graphics Tier in Intel iGPUs 2021-11-27 14:02:02 +01:00
Dr-Noob
b00050e739 [v0.11] Print available more information for iGPU 2021-11-27 11:22:16 +01:00
Dr-Noob
ce004725ad [v0.11] Working in printer backend to show logo and text for intel iGPU 2021-11-26 09:58:45 +01:00
Dr-Noob
461e0d2ede [v0.11] Working in master GPU handler for supporting diverse GPU vendors 2021-11-26 08:22:30 +01:00
Dr-Noob
149e5ad62c [v0.11] Working for future support of Intel iGPUs 2021-11-25 19:03:52 +01:00
Dr-Noob
cedcfecb80 [v0.11] Dont show tensor cores when there is 0. Use MMA (matrix multiply accumulate) instead of TC (tensor cores) 2021-11-25 17:52:58 +01:00
Dr-Noob
32b2c59b50 [v0.11] Add peak performance with tensor cores to the output 2021-11-23 18:49:34 +01:00
Dr-Noob
821b6e760e [v0.10] Add support for displaying the number of tensor cores 2021-11-23 18:09:13 +01:00
Dr-Noob
6afe26f884 [v0.05] Fix a bug that caused segfault when terminal size cannot be retrieved (e.g, redirection) 2021-08-16 22:07:52 +02:00
Dr-Noob
c7a08e7fd0 [v0.04] Add option to select GPU 2021-08-16 13:41:39 +02:00
Dr-Noob
a84c27a84c [v0.03] Add better output for memory and uarch attributes 2021-08-15 23:36:03 +02:00
Dr-Noob
7ad484b938 [v0.03] Add printer backend from cpufetch (still printing CPU logo) 2021-08-15 23:23:36 +02:00