Skip to content

Commit ed0bb89

Browse files
authored
Merge pull request #5988 from martin-frbg/issue5981
Ensure a safe distance between work arrays in the buffer of single-threaded POTRF
2 parents 6d36cf6 + 0944e9e commit ed0bb89

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lapack/potrf/potrf_L_single.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static FLOAT dm1 = -1.;
6868
#define GEMM_PQ MAX(GEMM_P, GEMM_Q)
6969

7070
//leave some space for GEMM_ALIGN in sb2
71-
#define REAL_GEMM_R (GEMM_R - 2*GEMM_PQ)
71+
#define REAL_GEMM_R (MAX(GEMM_R, GEMM_PQ + 96) - GEMM_PQ)
7272

7373
#if 0
7474
#define SHARED_ARRAY

lapack/potrf/potrf_U_single.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static FLOAT dm1 = -1.;
6666
#endif
6767

6868
#define GEMM_PQ MAX(GEMM_P, GEMM_Q)
69-
#define REAL_GEMM_R (GEMM_R - GEMM_PQ)
69+
#define REAL_GEMM_R (MAX(GEMM_R, GEMM_PQ + 96) - GEMM_PQ)
7070

7171
#if 0
7272
#define SHARED_ARRAY

0 commit comments

Comments
 (0)