aboutsummaryrefslogtreecommitdiffstats
path: root/math/atlas
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2005-06-28 12:45:59 +0800
committermaho <maho@FreeBSD.org>2005-06-28 12:45:59 +0800
commit479ce0f0c67bfb6986860ead3a210eafda38dc9c (patch)
tree573310af644d6d17727445a6bd441e4cdc8dc44f /math/atlas
parent6b5f17ffdcbde89d702b02949e829993818d1e23 (diff)
downloadfreebsd-ports-gnome-479ce0f0c67bfb6986860ead3a210eafda38dc9c.tar.gz
freebsd-ports-gnome-479ce0f0c67bfb6986860ead3a210eafda38dc9c.tar.zst
freebsd-ports-gnome-479ce0f0c67bfb6986860ead3a210eafda38dc9c.zip
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')
-rw-r--r--math/atlas/files/patch-tune+sysinfo+L1CacheSize.c20
-rw-r--r--math/atlas/files/patch-tune+sysinfo+getSysSum.c12
2 files changed, 32 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)
diff --git a/math/atlas/files/patch-tune+sysinfo+getSysSum.c b/math/atlas/files/patch-tune+sysinfo+getSysSum.c
new file mode 100644
index 000000000000..5113e28405ab
--- /dev/null
+++ b/math/atlas/files/patch-tune+sysinfo+getSysSum.c
@@ -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);
+ }