You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the 2stage routine of dsyevr, I get the following error message:
** On entry to DGEQRF parameter number 7 had an illegal value
The same usage works well with Intel's MKL.
EDIT: I forgot to mention that I'm using it via its LAPACKE_dsyevr_2stage() interface.
EDIT2: I'm calling it with the following parameters:
MATRIX_LAYOUT = LAPACK_COL_MAJOR
JOBZ = 'N'
RANGE = 'I'
UPLO = 'L'
N = 150
A = <pointer to a 150x150 sized calloc'd double>
LDA = 150
**VL = 0.0** -> This is parameter number 7; Why is it "illegal"?
VU = 0.0
IL = 4
IU = 4
ABSTOL = 1e-12
M = <pointer to a malloc'ed int>
W = <pointer to a 150 sized malloc'd double>
Z = <pointer to a malloc'd double>
LDZ = 150
ISUPPZ = <pointer to a malloc'ed int>
Not that I have a solution but it is the routine DGEQRF that gets the wrong argument (not dsyevr_2stage). This suggests an erroneous work-array allocation that is passed through the call-tree.
I have fixed the bug (it was due to missing conversions in the old #177).
This should clear out the remaining calls. I have tested this small snippet which fails on 3.8.0 but succeeds with #271.
program test
implicit noneinteger, parameter:: N =150, M =1real(8) :: A(N,N), W(N), Z(N,M)
real(8) :: ISUPPZ(2*M)
real(8), allocatable :: WORK(:)
integer, allocatable :: IWORK(:)
integer:: LWORK, LIWORK
integer:: mm, IL, IU
integer:: i, j
IL =4
IU = IL + M -1
A =0do i =1, N
A(i,i) =1end do
allocate(WORK(1), IWORK(1))
LWORK =-1
LIWORK =-1call dsyevr_2stage('N','I','L',N,A,N,0._8, 0._8, &
IL, IU, 1.d-12, mm, W, Z, N, ISUPPZ, WORK, LWORK, &
IWORK, LIWORK, i)
LWORK = WORK(1)
LIWORK = IWORK(1)
deallocate(WORK,IWORK)
print*,'WORK-query', i
allocate(WORK(LWORK),IWORK(LIWORK))
call dsyevr_2stage('N','I','L',N,A,N,0._8, 0._8, &
IL, IU, 1.d-12, mm, W, Z, N, ISUPPZ, WORK, LWORK, &
IWORK, LIWORK, i)
print*,i
end program test
Activity
zerothi commentedon Jul 2, 2018
Not that I have a solution but it is the routine
DGEQRFthat gets the wrong argument (notdsyevr_2stage). This suggests an erroneous work-array allocation that is passed through the call-tree.langou commentedon Aug 11, 2018
Hi all, Azzam is having a look at this right now. (Thanks Azzam.) He identified that the problem comes from 7b65169
Fixed Reference-LAPACK#262 by fixing Reference-LAPACK#177
zerothi commentedon Aug 12, 2018
I have fixed the bug (it was due to missing conversions in the old #177).
This should clear out the remaining calls. I have tested this small snippet which fails on 3.8.0 but succeeds with #271.
fixing BUG related to replacing ILAENV by ILAENV2STAGE. fixing LAPACK…
zerothi commentedon Sep 4, 2018
This should be solved now in #271/#272 @uihsnv could you please try with the latest commits?
fixing BUG related to replacing ILAENV by ILAENV2STAGE. fixing LAPACK…
weslleyspereira commentedon May 24, 2023
I will close this issue since it must have been solved by #271 / #272. Let me know if I should reopen it.