Skip to content

Metal: ComplexF32 rejected by to_backend, never compiled or tested #143

Closed as not planned

Description

@michel2323

Found while working on: T31 (PR #136)

What: ext/SparseDirectSolverMetalExt.jl, to_backend(::SparseMatrixCSC, ::MetalBackend) accepts Float32 only and raises NotSupportedError for ComplexF32, although the T31 task text names Float32/ComplexF32 for Metal (Apple GPUs have no FP64). The numeric and solve kernels are generic in T, but ComplexF32 on Metal was never compiled or tested (the test-metal CI job runs Float32 only), and MPS has no complex Cholesky, so the wide-front MPS route would have to stay off for complex T.

Why it is out of scope: T31 delivered the Metal extension for Float32; complex support needs Metal hardware to develop and test. No task in TASKS.md owns it; it blocks nothing.

Suggested fix or plan change: admit ComplexF32 in to_backend, keep _offset_potrf_plan returning nothing for complex T, and add ComplexF32 to the test-metal job's SDS_TEST_ELTYPES.

Activity

  1. added
    found-by-agent
    enhancement
    metal
    on Oct 27, 2026
  2. michel2323 commented on Oct 29, 2026

    @michel2323
    MemberAuthor

    Consolidated into the Metal tracking issue (see the issue list, label metal).

  3. michel2323 commented on Oct 29, 2026

    @michel2323
    MemberAuthor

    Tracking issue: #168.

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

    enhancementfound-by-agentmetal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions