[PR #3986] [Engine] gfx906: fix the build of src/core/dflash2.cpp #4863

Open
opened 2026-11-07 16:30:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3986
Author: @MarcoTool
Created: 10/24/2026
Status: 🔄 Open

Base: main ← Head: gfx906-dflash2-build


📝 Commits (1)

  • d13f0ab dflash2: build on gfx906 (the stream setup checks STRATA_HIP_GFX906 with STRATA_USE_HIP)

📊 Changes

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

View changed files

📝 src/core/dflash2.cpp (+1 -1)

📄 Description

Problem and result

The gfx906 build (-DSTRATA_HIP_GFX906=ON) fails in src/core/dflash2.cpp:

src/core/dflash2.cpp:205:5: error: use of undeclared identifier 'cudaDeviceGetStreamPriorityRange'
src/core/dflash2.cpp:206:9: error: use of undeclared identifier 'cudaStreamCreateWithPriority'
src/core/dflash2.cpp:207:9: error: use of undeclared identifier 'cudaStreamCreateWithPriority'

The HIP branch there is guarded by STRATA_USE_HIP only, so a gfx906 build compiles the CUDA branch. This PR adds
STRATA_HIP_GFX906 to that guard, and the gfx906 build passes.

Validation

ninja strata for gfx906 on main 7dd5cf18 (ROCm 7.14): builds with this change, fails with the errors above without it.


🔄 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/3986 **Author:** [@MarcoTool](https://github.com/MarcoTool) **Created:** 10/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `gfx906-dflash2-build` --- ### 📝 Commits (1) - [`d13f0ab`](https://github.com/Niko1221/Strata/commit/d13f0abba01407c15820b648a164b33b031d57d8) dflash2: build on gfx906 (the stream setup checks STRATA_HIP_GFX906 with STRATA_USE_HIP) ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/core/dflash2.cpp` (+1 -1) </details> ### 📄 Description ## Problem and result The gfx906 build (`-DSTRATA_HIP_GFX906=ON`) fails in `src/core/dflash2.cpp`: ``` src/core/dflash2.cpp:205:5: error: use of undeclared identifier 'cudaDeviceGetStreamPriorityRange' src/core/dflash2.cpp:206:9: error: use of undeclared identifier 'cudaStreamCreateWithPriority' src/core/dflash2.cpp:207:9: error: use of undeclared identifier 'cudaStreamCreateWithPriority' ``` The HIP branch there is guarded by `STRATA_USE_HIP` only, so a gfx906 build compiles the CUDA branch. This PR adds `STRATA_HIP_GFX906` to that guard, and the gfx906 build passes. ## Validation `ninja strata` for gfx906 on main 7dd5cf18 (ROCm 7.14): builds with this change, fails with the errors above without it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#4863
No description provided.