Repository navigation
Description
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 50Why 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
michel2323 commentedon Oct 28, 2026
Upstream issue: JuliaGPU/oneAPI.jl#755. The LAPACK info PR is JuliaGPU/oneAPI.jl#754.
T31: review round 5: Cholesky status from the factor diagonal (oneMKL…
T31: review round 5: keep the oneMKL potrf column fix in the oneAPI e…
T31: review round 5: Cholesky status from the factor diagonal (oneMKL…
T31: review round 5: keep the oneMKL potrf column fix in the oneAPI e…
T31: oneAPI and Metal extensions (#136)
michel2323 commentedon Oct 29, 2026
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.