Add two patches for stable builds.

o L1 cache size is not correctly detected having a bad clock
o in some case small number of tries in tuning doesn't meet convergence
  see FAQ http://math-atlas.sourceforge.net/errata.html#tol
This commit is contained in:
Maho Nakata 2005-06-28 04:45:59 +00:00
parent 840364f4eb
commit 852063c6cd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138097
4 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- tune/sysinfo/L1CacheSize.c Mon Dec 22 23:11:53 2003
+++ ../../L1CacheSize.c Tue Jun 28 13:37:10 2005
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
-#define REPS 4096
+#define REPS 12288
#ifndef time00
#define time00 ATL_cputime
@@ -134,7 +134,7 @@
main(int nargs, char *args[])
{
- int L1Size, tmp, MaxSize=64, correct=1;
+ int L1Size, tmp, MaxSize=256, correct=1;
FILE *L1f;
if (nargs > 2)

View file

@ -0,0 +1,12 @@
http://math-atlas.sourceforge.net/errata.html#tol
--- tune/sysinfo/GetSysSum.c~ Sat Jul 24 20:40:05 2004
+++ tune/sysinfo/GetSysSum.c Sun Jun 26 07:52:43 2005
@@ -116,7 +116,7 @@
fprintf(fpout, "#define ATL_fplat %d\n", lat);
fprintf(fpout, "#define ATL_lbnreg %d\n", lbnreg);
fprintf(fpout, "#define ATL_mmnreg %d\n", mmnreg);
- fprintf(fpout, "#define ATL_nkflop %d\n", nkflop);
+ fprintf(fpout, "#define ATL_nkflop %d\n", nkflop*5);
fprintf(fpout, "\n#endif\n");
fclose(fpout);
}

View file

@ -0,0 +1,20 @@
--- tune/sysinfo/L1CacheSize.c Mon Dec 22 23:11:53 2003
+++ ../../L1CacheSize.c Tue Jun 28 13:37:10 2005
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
-#define REPS 4096
+#define REPS 12288
#ifndef time00
#define time00 ATL_cputime
@@ -134,7 +134,7 @@
main(int nargs, char *args[])
{
- int L1Size, tmp, MaxSize=64, correct=1;
+ int L1Size, tmp, MaxSize=256, correct=1;
FILE *L1f;
if (nargs > 2)

View file

@ -0,0 +1,12 @@
http://math-atlas.sourceforge.net/errata.html#tol
--- tune/sysinfo/GetSysSum.c~ Sat Jul 24 20:40:05 2004
+++ tune/sysinfo/GetSysSum.c Sun Jun 26 07:52:43 2005
@@ -116,7 +116,7 @@
fprintf(fpout, "#define ATL_fplat %d\n", lat);
fprintf(fpout, "#define ATL_lbnreg %d\n", lbnreg);
fprintf(fpout, "#define ATL_mmnreg %d\n", mmnreg);
- fprintf(fpout, "#define ATL_nkflop %d\n", nkflop);
+ fprintf(fpout, "#define ATL_nkflop %d\n", nkflop*5);
fprintf(fpout, "\n#endif\n");
fclose(fpout);
}