Skip to content

Does MLX_ENABLE_TF32 Actually Enable TF32 or Just Activate the NAX Matmul Path? #3235

Closed

Description

@XXXXRT666

In the source code of matmul, I noticed that MLX_ENABLE_TF32 must be enabled in order to use the NAX path for matrix multiplication. In the actual implementation, does it truly use TF32 precision, or does it simply switch to the NAX path, which brings a speed improvement?

Activity

  1. angeloskath commented on Mar 10, 2026

    @angeloskath
    Member

    TF32 is only supported by NAX. So this flag enables TF32 if NAX is available for this operation.

  2. XXXXRT666 commented on Mar 10, 2026

    @XXXXRT666
    ContributorAuthor

    So is this GEMM actually computed using FP32, or does it use TF32 like when the environment variable is enabled? I couldn’t find any references to TF32 in the Metal Shading Language 4 specification

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