We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pddbtrsv
The LWORK size is given here.
LWORK
scalapack/SRC/pddbtrsv.f
Lines 128 to 132 in a23c2cd
But in the following call, the size required is larger.
Lines 1499 to 1500 in a23c2cd
Assuming the trailing MAX_BW + BWL - BWU elements are not accessed, this DLAMOV call requires the following size of WORK:
MAX_BW + BWL - BWU
DLAMOV
WORK
MAX_BW - BWU + ( MAX_BW + BWL ) * NRHS - MAX_BW - BWL + BWU = MAX_BW * NRHS + BWL * ( NRHS - 1 )
The current implementation results in a buffer overrun. A simple case can be reproduced using the following setting.
RANK = 2, N = 42, NRHS = 13, KL = 15, KU = 12, BLOCK = 30, LOCr(N) = 0 RANK = 0, N = 42, NRHS = 13, KL = 15, KU = 12, BLOCK = 30, LOCr(N) = 30 RANK = 1, N = 42, NRHS = 13, KL = 15, KU = 12, BLOCK = 30, LOCr(N) = 12
Maybe the minimum size shall be revised. For simplicity, MAX_BW * ( 2 * NRHS - 1 ) or MAX_BW * 2 * NRHS.
MAX_BW * ( 2 * NRHS - 1 )
MAX_BW * 2 * NRHS
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
LWORK
size is given here.scalapack/SRC/pddbtrsv.f
Lines 128 to 132 in a23c2cd
But in the following call, the size required is larger.
scalapack/SRC/pddbtrsv.f
Lines 1499 to 1500 in a23c2cd
Assuming the trailing
MAX_BW + BWL - BWU
elements are not accessed, thisDLAMOV
call requires the following size ofWORK
:The current implementation results in a buffer overrun.
A simple case can be reproduced using the following setting.
Maybe the minimum size shall be revised.
For simplicity,
MAX_BW * ( 2 * NRHS - 1 )
orMAX_BW * 2 * NRHS
.The text was updated successfully, but these errors were encountered: