[PR #356] [CLOSED] HIP: build the AMD engine on Windows #2594

Closed
opened 2026-11-04 02:01:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/356
Author: @jagsan-cyber
Created: 10/1/2026
Status: ❌ Closed

Base: main ← Head: win-hip-pr


📝 Commits (1)

  • c005a9e HIP: build the AMD engine on Windows

📊 Changes

3 files changed (+220 additions, -22 deletions)

View changed files

📝 cmake/hip_backend.cmake (+13 -4)
📝 setup.py (+189 -18)
📝 src/prefill/gemm.cu (+18 -0)

📄 Description

Windows can compile the HIP engine against an installed ROCm 10 or HIP SDK.

  • MSVC host compiles force-include cuda_runtime.h with /FI and forward slashes. HIP compiles still use -include.
  • setup.py finds that ROCm tree (ROCM_PATH, rocm-sdk, HIP_PATH, or the HIP SDK) and uses its clang for the host as well as for HIP. CMake will not mix cl.exe with Clang HIP.
  • On Windows only, a successful gfx1201 hipBLAS GEMM may leave hipErrorInvalidValue set. The engine clears that sticky error so the next kernel check does not exit. Linux still reports it.

This is the Windows build slice of #247, rebased onto 0.1.31. It does not include the README rewrite, the multi-shard pack, the iGPU ordinal fix, or the copy batching.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/356 **Author:** [@jagsan-cyber](https://github.com/jagsan-cyber) **Created:** 10/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `win-hip-pr` --- ### 📝 Commits (1) - [`c005a9e`](https://github.com/Niko1221/Strata/commit/c005a9e40193f0896187f977270e5e53e2b9107a) HIP: build the AMD engine on Windows ### 📊 Changes **3 files changed** (+220 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `cmake/hip_backend.cmake` (+13 -4) 📝 `setup.py` (+189 -18) 📝 `src/prefill/gemm.cu` (+18 -0) </details> ### 📄 Description Windows can compile the HIP engine against an installed ROCm 10 or HIP SDK. - MSVC host compiles force-include `cuda_runtime.h` with `/FI` and forward slashes. HIP compiles still use `-include`. - `setup.py` finds that ROCm tree (`ROCM_PATH`, `rocm-sdk`, `HIP_PATH`, or the HIP SDK) and uses its clang for the host as well as for HIP. CMake will not mix `cl.exe` with Clang HIP. - On Windows only, a successful gfx1201 hipBLAS GEMM may leave `hipErrorInvalidValue` set. The engine clears that sticky error so the next kernel check does not exit. Linux still reports it. This is the Windows build slice of #247, rebased onto 0.1.31. It does not include the README rewrite, the multi-shard pack, the iGPU ordinal fix, or the copy batching. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:01:38 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2594
No description provided.