summaryrefslogtreecommitdiff
path: root/math/atlas/files/patch-tune+sysinfo+L1CacheSize.c
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2005-06-28 04:45:59 +0000
committerMaho Nakata <maho@FreeBSD.org>2005-06-28 04:45:59 +0000
commit852063c6cd1760b68a390eab2f8392fedbf4129c (patch)
treeb5834019f6149d770149d243f5cb594bc3590379 /math/atlas/files/patch-tune+sysinfo+L1CacheSize.c
parentUpdate to 2.10.1. (diff)
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
Diffstat (limited to 'math/atlas/files/patch-tune+sysinfo+L1CacheSize.c')
-rw-r--r--math/atlas/files/patch-tune+sysinfo+L1CacheSize.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/math/atlas/files/patch-tune+sysinfo+L1CacheSize.c b/math/atlas/files/patch-tune+sysinfo+L1CacheSize.c
new file mode 100644
index 000000000000..2028b4ae92b8
--- /dev/null
+++ b/math/atlas/files/patch-tune+sysinfo+L1CacheSize.c
@@ -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)