Skip to content

Commit 4835a0f

Browse files
committed
Add debug for CI
1 parent 4bf986b commit 4835a0f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/lapack.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4092,7 +4092,16 @@ for (stev, stebz, stegr, stein, elty) in
40924092
end
40934093
wm = min(n, m[])
40944094
Zm = min(Zn, m[])
4095-
resize!(w, wm), reshape(resize!(Z, ldz * Zm), ldz, Zm)
4095+
try
4096+
return resize!(w, wm), reshape(resize!(Z, ldz * Zm), ldz, Zm)
4097+
catch ex
4098+
if isa(ex, ReadOnlyMemoryError)
4099+
@info "ReadOnlyMemoryError!" n Zn wm Zm m[] jobz range dv ev vl vu il iu
4100+
@info w
4101+
@info Z
4102+
end
4103+
rethrow()
4104+
end
40964105
end
40974106

40984107
function stein!(dv::AbstractVector{$elty}, ev_in::AbstractVector{$elty}, w_in::AbstractVector{$elty}, iblock_in::AbstractVector{BlasInt}, isplit_in::AbstractVector{BlasInt})

0 commit comments

Comments
 (0)