Skip to content

[Engine] gfx1010 (RX 5700 XT) build fails: __builtin_amdgcn_sdot4 needs dot1-insts in rdna_mmvq.cu and rdna_gr.cu #308

Backlog

Description

@myway880

Building on Windows with HIP for gfx1010 (Navi 10, RX 5700 XT) fails at commit 36e654b (engine 0.1.66) with:

engine/src/kernels/cuda/rdna_mmvq.cu:72:12: error: '__builtin_amdgcn_sdot4' needs target feature dot1-insts
engine/src/kernels/cuda/rdna_gr.cu:92: error: '__builtin_amdgcn_sdot4' needs target feature dot1-insts

Both files call __builtin_amdgcn_sdot4 directly for every pre-RDNA3 card, but gfx1010 has no dot1 instructions. The repo already has strata::hip_compat::dp4a, which handles this for gfx1010. Switching those two calls to strata::hip_compat::dp4a makes them compile for gfx1010. This affects every model family, since they all build the same engine.

Diagnosed by Grok Bot

Activity

  1. added
    needs-format
    on Nov 24, 2026
  2. github-actions commented on Nov 24, 2026

    @github-actions

    Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

    • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

    Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

    Details: CONTRIBUTING.md

  3. changed the title [-]gfx1010 (RX 5700 XT) build fails: __builtin_amdgcn_sdot4 needs dot1-insts in rdna_mmvq.cu and rdna_gr.cu[/-] [+][Engine] gfx1010 (RX 5700 XT) build fails: __builtin_amdgcn_sdot4 needs dot1-insts in rdna_mmvq.cu and rdna_gr.cu[/+] on Nov 24, 2026
  4. removed
    needs-format
    on Nov 24, 2026
  5. github-actions commented on Nov 24, 2026

    @github-actions

    Thanks, this follows the format now.

  6. myway880 commented on Nov 24, 2026

    @myway880
    Author

    note once i fixed these locally the build finished successfully , and it is seems to be running inkling correctly , thanks for your work
    decode 15.7
    prefill 58
    on 128k context
    prefill reaches ~130 with prompt patch 2048

  7. okada-shogo commented on Nov 24, 2026

    @okada-shogo
    Contributor

    Ah thank you for the report. I don't have access to a AMD 5700xt and it's difficult to rent one online. This bugs probably related to some change I made so I'll look into it.

  8. okada-shogo commented on Nov 24, 2026

    @okada-shogo
    Contributor

    @myway880 I put a fixed branch up port/gfx1010-dot on my fork https://github.com/okada-shogo/PolyStrata, PR to follow.

    Also 15.7 tok/s decode and 58 tok/s prompts look low for an RX 5700 XT, and we have no gfx1010 card to test on. Could you run our bench report on your machine? It measures the card (bandwidth, launch and sync cost, PCIe) and the engine (time per kernel class, where each token's time goes), and says what limits it. It is in PR #285 and uploads nothing.

    Branch gfx1010-bench has the bench report with your fix already in it:

    git clone -b gfx1010-bench https://github.com/okada-shogo/PolyStrata.git

    Build strata-poly as you did before, then:

    strata-poly --model --bench-report report.md

    Please attach report.md here, plus the run command you normally use (flags, context size). With the report we can tell whether the 5700 XT is limited by memory bandwidth, by kernel launches, or by the experts that don't fit in VRAM.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions