Skip to content

[AMD GPU] Add ROCm backend#1172

Open
Looong01 wants to merge 23 commits intolightvector:masterfrom
Looong01:ROCm
Open

[AMD GPU] Add ROCm backend#1172
Looong01 wants to merge 23 commits intolightvector:masterfrom
Looong01:ROCm

Conversation

@Looong01
Copy link

All test passed, we can merge it to main branch! @lightvector

Binary release has been published here: https://github.com/Looong01/KataGo-Multi-backends/releases

Background

This PR summarizes all commits by Looong01 on the ROCm branch from 2025-07-28 to 2026-03-16 (23 commits total: 18 non-merge + 5 merge), focused on introducing and refining ROCm backend support in KataGo.

Key Changes

  • Added core ROCm backend implementation and utility files: rocmbackend.cpp, rocmhelpers.hip, rocmutils.*, rocmincludes.h, rocmerrorcheck.h.
  • Integrated USE_ROCM_BACKEND into startup and config flow (setup/benchmark/gtpconfig) for proper backend detection and config generation.
  • Expanded ROCm build logic in cpp/CMakeLists.txt: HIP compiler setup, architecture/FP16 detection, ROCm package lookup, and fallback linking.
  • Added Windows ROCm build support (HIP_PATH/ROCM_PATH, clang toolchain handling, Windows library search paths).
  • Iteratively improved rocmbackend.cpp with Convlayer method updates, performance tuning, and bug fixes.
  • Introduced and then removed experimental rocmbackend_new.cpp after merging validated changes into the main backend path.
  • Updated docs and sample configs (README / Compiling / cpp/configs/*) with ROCm instructions and rocmDeviceToUse*, rocmUseFP16 examples.
  • Regularly merged upstream lightvector:master to reduce branch drift.

Change Stats

  • Commits: 23 (non-merge: 18, merge: 5)
  • Files touched: 21
  • Diffstat: +9372 / -4009

Included Commits (Author: Looong01)

  • 1f2ae46e 2025-07-28 Add ROCm backend
  • b4555304 2025-07-28 Fix bugs
  • 8b30cb96 2025-07-31 Update
  • 570ced01 2025-08-01 Fix bugs
  • abb61240 2025-08-01 Fix bugs
  • bfb292e7 2025-08-01 All bug fixed
  • 4606424f 2025-08-01 Update
  • 1e8ea788 2025-08-02 test new method
  • c1a09cf3 2025-08-02 Update
  • 0957b88b 2025-08-02 Test finished
  • c70d841a 2025-08-02 Update docks
  • 1d05ca8d 2025-08-02 Update gitignore
  • 9d4662b7 2025-08-02 Update new method
  • d40bd509 2025-08-02 Optimize performance
  • 158d24df 2025-08-13 Update new Convlayer method
  • ec32eb19 2025-08-13 Merge branch 'master' of https://github.com/Looong01/KataGo-ROCm
  • 0bfe0a14 2025-10-04 Add new compile target
  • f5fbb336 2025-11-08 Merge branch 'lightvector:master' into master
  • 26d8c5bd 2025-11-08 Add ROCm for Windows support
  • 555d2f17 2025-12-01 Merge branch 'lightvector:master' into master
  • dbc7cfa4 2026-02-22 Merge branch 'lightvector:master' into master
  • ed396b72 2026-02-28 Fix bugs
  • ccec62c5 2026-03-16 Merge branch 'lightvector:master' into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant