Fix random crashes in GEMM on Haswell, Zen and Skylake-X
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Wed, 29 Jul 2020 12:51:22 +0000 (13:51 +0100)
committerSébastien Villemot <sebastien@debian.org>
Wed, 29 Jul 2020 12:51:22 +0000 (13:51 +0100)
Origin: upstream, https://github.com/xianyi/OpenBLAS/pull/2729/commits/6c33764ca43c7311bdd61e2371b08395cf3e3f01
Bug: https://github.com/xianyi/OpenBLAS/issues/2728
Bug-Debian: https://bugs.debian.org/966175
Last-Update: 2020-07-29

Last-Update: 2020-07-29
Gbp-Pq: Name fix-dynamic-arch-gemm-crashes.patch

common_x86_64.h

index 15d0c30aa955b178862a3b7bf058e1d1bedd2515..bee7e8cdbd1334a3af085dc4c869c374f930573e 100644 (file)
@@ -228,14 +228,8 @@ static __inline unsigned int blas_quickdivide(unsigned int x, unsigned int y){
 #define HUGE_PAGESIZE  ( 2 << 20)
 
 #ifndef BUFFERSIZE
-#if defined(SKYLAKEX) 
-#define BUFFER_SIZE    (32 << 21)
-#elif defined(HASWELL) || defined(ZEN)
 #define BUFFER_SIZE    (32 << 22)
 #else
-#define BUFFER_SIZE    (32 << 20)
-#endif
-#else
 #define BUFFER_SIZE    (32 << BUFFERSIZE)
 #endif