mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4600] [Engine] iq_kernels.cu: drop redundant alignas to fix hip build #5105
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4600
Author: @suvayu
Created: 10/29/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (1)
961e0a6iq_kernels.cu: drop redundant alignas to fix hip build📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
src/kernels/cuda/iq_kernels.cu(+4 -2)📄 Description
Declaration: I used DeepSeek v4.1 to find the fix.
Problem and result
Strata is not compiling against ROCm. Compilation error:
Related discussion
#4589
Approach
clang's HIP frontend rejects alignas in that position: it parses the attribute as appertaining to the type rather than to the declared entity → 'alignas' attribute cannot be applied to types.
This build failure was already known, as documented by the following comment on line 1869 in the same file.
Not sure I understand the MSVC comment.
Validation
My environment:
Passed:
A ROCm build now succeeds.
Failed:
none observed
Not run:
I have not checked if this still compiles with
nvcc.Limits
NA
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.