Commit Graph

11 Commits

Author SHA1 Message Date
Dr-Noob
47091fded5 Improve build script 2025-10-17 07:39:02 +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
9837236c7e [v0.25] Fixed some details in README and build.sh 2022-12-03 14:46:48 +00:00
Dr-Noob
6f196c1797 [v0.23] Fix FreeBSD compilation issues as reported by #13 2022-04-10 16:52:42 +01:00
Dr-Noob
6f555f1b47 [v0.22] Small various fixes 2021-12-28 16:43:11 +01:00
Dr-Noob
3e9f72fcf0 [v0.20] Add debug option in build.sh script 2021-12-21 16:40:28 +01:00
Dr-Noob
d9a0a428e4 [v0.20] Show examples to disable backends separately 2021-12-19 10:19:44 +01:00
Dr-Noob
81607151dc [v0.10] Update build script and README 2021-09-04 16:02:50 +02: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