[PR #52] [MERGED] HIP: v1.0.21 does not build on AMD - map the three device-query names from #44 #303

Closed
opened 2026-10-29 21:24:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/52
Author: @boxwrench
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @mw00

Base: main ← Head: fix/hip-device-query-names


📝 Commits (1)

  • 7cda7da HIP: map the device-query names #44 uses (v1.0.21 does not build on HIP without them)

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 include/strata/hip_compat/cuda_runtime.h (+3 -0)

📄 Description

v1.0.21 does not build on AMD: #44 calls cudaDeviceGetPCIBusId and queries cudaDevAttrMemoryClockRate / cudaDevAttrGlobalMemoryBusWidth, which have no mapping in include/strata/hip_compat/cuda_runtime.h, so glm_fast_path.cu and glm_model.cu fail to compile with HIP. This adds the three mappings (the same fix as in my #44 comment, which arrived after the merge).

Checked: v1.0.21 + this builds strata and glm_model_test for gfx1100;gfx1201;gfx1151 (ROCm 7.2.1); the same lines were run end to end on a Strix Halo with #41 + #44 (parity tests pass, 8K-60K-token prompts and decode without errors). CUDA is untouched (hip_compat only).

Since the dashboard's About > Update rebuilds on update, AMD users on v1.0.21 would currently get a failed build.


🔄 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/mw00/project-maya/pull/52 **Author:** [@boxwrench](https://github.com/boxwrench) **Created:** 10/9/2026 **Status:** ✅ Merged **Merged:** 10/9/2026 **Merged by:** [@mw00](https://github.com/mw00) **Base:** `main` ← **Head:** `fix/hip-device-query-names` --- ### 📝 Commits (1) - [`7cda7da`](https://github.com/mw00/project-maya/commit/7cda7da25e4e66d501ae898703817e658a61d82b) HIP: map the device-query names #44 uses (v1.0.21 does not build on HIP without them) ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `include/strata/hip_compat/cuda_runtime.h` (+3 -0) </details> ### 📄 Description v1.0.21 does not build on AMD: #44 calls `cudaDeviceGetPCIBusId` and queries `cudaDevAttrMemoryClockRate` / `cudaDevAttrGlobalMemoryBusWidth`, which have no mapping in `include/strata/hip_compat/cuda_runtime.h`, so `glm_fast_path.cu` and `glm_model.cu` fail to compile with HIP. This adds the three mappings (the same fix as in my #44 comment, which arrived after the merge). Checked: v1.0.21 + this builds `strata` and `glm_model_test` for gfx1100;gfx1201;gfx1151 (ROCm 7.2.1); the same lines were run end to end on a Strix Halo with #41 + #44 (parity tests pass, 8K-60K-token prompts and decode without errors). CUDA is untouched (hip_compat only). Since the dashboard's About > Update rebuilds on update, AMD users on v1.0.21 would currently get a failed build. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:24:00 +07:00
Sign in to join this conversation.
No labels
pull-request
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
mw00/project-maya#303
No description provided.