Skip to content

oneMKL GPU potrf reports the failing column relative to its 32-column panel #150

Closed as not planned

Description

@michel2323

Found while working on: T31 (PR #136, review round 5; the oneapi CI leg failed 80 assertions in test_dense)

What: oneMKL 2026.1 (oneAPI_Support_jll 0.11.0) potrf on the Intel Data Center GPU Max (1100 here, the runner headroom) returns a wrong info when the failing column is beyond 32. Real types get the column inside its 32-wide panel, (j - 1) % 32 + 1. Complex types get panel * 1024 + local. Columns 1..32 are right. Reproduced on the raw C shim (Support.onemklDpotrf), which forwards computation_error::info() unchanged, so the value comes from oneMKL itself. Real-type results for an HPD matrix with A[j, j] = -1, same for 'L'/'U':

n j info returned
50 17 17
50 33 1
100 50 18
100 100 4
257 257 1

ComplexF32/ComplexF64 at n = 100: j = 50 gives 1042, j = 97 gives 3073. In every case the factor still follows LAPACK potf2: the first diagonal entry that is not a finite positive real is exactly j. getrf's info is right. The runner's OverrideDefaultFP64Settings/IGC_EnableDPEmulation make no difference.

Repro (Julia, oneAPI.jl main):

using oneAPI, LinearAlgebra; using oneAPI: Support, sycl_queue, global_queue
n, j = 100, 50
G = randn(n, n); S = Matrix(Hermitian(G * G' / n + n * I)); S[j, j] = -1
A = oneMatrix(S); q = sycl_queue(global_queue(oneAPI.context(A), oneAPI.device(A)))
lw = Support.onemklDpotrf_scratchpad_size(q, 'L', n, n)
Support.onemklDpotrf(q, 'L', n, A, n, oneVector{Float64}(undef, lw), lw)   # 18, expected 50

Why it is out of scope: an Intel oneMKL bug. PR #136 works around it: potrf! and potrf_info! take the column from the factor diagonal (ka_chol_diag_info!, ka_chol_check_info!) whenever it shows a bad pivot. This is the same mechanism that already covers cuSOLVER missing a non-positive last pivot. :auto never uses oneMKL LAPACK on oneAPI, so only explicit impl = :vendor was affected.

Suggested fix or plan change: report it to Intel; the reproducer above, or the same call in C++ with icpx -fsycl against oneapi::mkl::lapack::potrf. The oneAPI.jl change that makes LinearAlgebra.LAPACK.potrf!/getrf! return info (local branch lapack-info of ../oneAPI.jl, which also fixes cholesky/lu on oneArrays) records the bug as @test_broken. Related: #148.

Activity

  1. added
    found-by-agent
    on Oct 28, 2026
  2. michel2323 commented on Oct 28, 2026

    @michel2323
    MemberAuthor

    Upstream issue: JuliaGPU/oneAPI.jl#755. The LAPACK info PR is JuliaGPU/oneAPI.jl#754.

  3. added
    upstream
    oneapi
    on Oct 29, 2026
  4. michel2323 commented on Oct 29, 2026

    @michel2323
    MemberAuthor

    Closed here: an Intel oneMKL bug, reported as JuliaGPU/oneAPI.jl#755; the extension works around it by reading the failing column from the factor diagonal. Tracked with the other oneAPI.jl limits in #148.

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

    found-by-agentoneapiupstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions