Commit Graph

24 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
e0b0a6913c Build pciutils only if neccesary 2025-10-16 07:52:58 +02:00
Dr-Noob
8794cd322d [v0.30] Add support for building on AMD where rocm-cmake is not installed 2025-10-16 07:24:45 +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
c4ad2bd4f8 [v0.24] Merge bugfix branch 2022-04-17 14:04:19 +02:00
Dr-Noob
af52d2850c [v0.24] Remove cuda-samples dependency 2022-04-17 13:55:05 +02:00
Dr-Noob
6f196c1797 [v0.23] Fix FreeBSD compilation issues as reported by #13 2022-04-10 16:52:42 +01:00
Dr-Noob
ebad29e044 [v0.23] Fix CMake to find CUDA Samples in CUDA >= 11.6 2022-03-12 11:04:09 +01: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
49119ae7eb [v0.22] Disable pciutils hwdb compilation (useless for gpufetch) to avoid linking against udev 2022-01-12 19:14:56 +01:00
Dr-Noob
6d9985e5f7 [v0.22] Link against udev, which should fix the error reported by #9 2022-01-11 18:33:49 +01:00
Dr-Noob
0faa7caeee [v0.22] Add check to properly detect TigerLake GT2 80/96 EUs 2021-12-29 21:56:19 +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
93889b2b18 [v0.11] Small adjustments to fix compilation on older compilers 2021-12-10 16:18:39 +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
b00050e739 [v0.11] Print available more information for iGPU 2021-11-27 11:22:16 +01:00
Dr-Noob
8740337145 [v0.11] Adding uarch backend for intel iGPUs 2021-11-26 12:52:45 +01:00
Dr-Noob
e5a4f91b20 [v0.11] Hacky way to solve CMake issues without requiring newer CMake versions 2021-11-26 09:19:24 +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
bdf9eb0079 [v0.10] Use CMake instead of Make, which will take care of pciutils automatically if it is not installed 2021-09-04 14:05:16 +02:00
Dr-Noob
6b2fa05870 [v0.06] Fix README link and remove unused CMake files 2021-08-17 10:40:33 +02:00
Dr-Noob
617228ce17 [v0.05] Allow user to change CUDA_PATH. Add CMakeLists.txt in case I decide to change to CMake later 2021-08-16 18:16:32 +02:00