Skip to content

CUDA: SET_ROWS_TURBO3/TURBO4 tests never run because CPY from turbo to F32 is unsupported #385

Open

Description

@TheTom

Found while gating #357 on a GB10. On CUDA, every SET_ROWS_TURBO3 and SET_ROWS_TURBO4 case in test-backend-ops reports not supported [CUDA0], and the run ends with 0/0 tests passed and FAIL. That happens on the base branch (92e0cb5) as well as on #357.

Both tests end their graph in ggml_cpy(..., F32) so the comparison runs on dequantized values, and CUDA's supports_op for CPY lists no turbo source type. So the CUDA turbo2/3/4 KV writers in set-rows.cu have no op-level test at all. The flash attention tests don't reach them either, because the harness quantizes K and V on the CPU before upload. Today only end-to-end perplexity runs exercise those writers.

#381 adds CPY from tq to F32 on CUDA, and its SET_ROWS_TQ6/SET_ROWS_TQ5 cases do run there (21/21 each on the GB10), so the same test shape works once the CPY exists. The fix is to implement and advertise CPY turbo{2,3,4} to F32 on CUDA with the existing dequant, which is what Vulkan got in #373. Flash attention is currently the only CUDA op that accepts a turbo source, so there's no cheaper op to end the tests on.

Repro on any CUDA box:

test-backend-ops test -b CUDA0 -o SET_ROWS_TURBO3
test-backend-ops test -b CUDA0 -o SET_ROWS_TURBO4

Activity

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