Skip to content

direct compute: lower binary16 VOP1 rcp, sqrt, exp, rsq and log #3219

Done

Description

@Leyukaka

Part of #2935 (instruction coverage). Target branch main. I am taking it; the PR follows.

Gap. Direct compute lowers the binary16 VOP2 ALU ops only. The binary16 VOP1 ops v_rcp_f16, v_sqrt_f16, v_exp_f16, v_rsq_f16 and v_log_f16 are refused, plain and SDWA. Captured SDWA forms use dst_sel WORD_0 or WORD_1, with UNUSED_PAD or UNUSED_PRESERVE.

Measured on a local capture of 2,689 compute requests (counts and instruction shape only), with compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests on main c45bf9ab:

AI-assisted.

Activity

  1. Leyukaka commented on Nov 29, 2026

    @Leyukaka
    CollaboratorAuthor

    v_rcp_f16, v_sqrt_f16, v_exp_f16 and v_rsq_f16 are on main through #3220 (src/gfx1013_compute_native.cpp:32-35).
    v_log_f16 is not in that list and is still refused (control at tests/native_f16_alu_check.py:408); #3220 gives the accuracy reason.
    Releasing my claim on the log part.

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