Commit Graph

13 Commits

Author SHA1 Message Date
Dr-Noob
7c361ee879 Not sure this is what we want 2025-10-16 08:14:46 +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
774550307c [v0.25] Add option to print all GPUs as requested in #33 2022-12-03 18:04:50 +01:00
Dr-Noob
24f20d0901 [v0.24] Small fixes; improve PCI report when no GPU is found, speedup invalid GPU idx detection 2022-05-14 12:00:23 +02:00
Dr-Noob
bd1158c139 [v0.23] Sort PCI devices; this makes the devices list to match CUDA driver ordering, which fixes a bug when there was more than one NVIDIA GPU 2022-01-22 13:25:22 +01:00
Dr-Noob
4921660c24 [v0.20] Properly check GPU index range 2021-12-21 17:09:32 +01:00
Dr-Noob
a20e93f4db [v0.20] Print help message when no GPU is detected to help people understand whats going on 2021-12-21 17:03:39 +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
8740337145 [v0.11] Adding uarch backend for intel iGPUs 2021-11-26 12:52:45 +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
310486a6a2 [v0.11] Fixes to recover CUDA functionality, ready for implementing Intel iGPU code 2021-11-26 09:33:57 +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