Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Peng Chang (Charles) (ed3ced3522d3c6b4cb10c73fb4bedb63c6358b0e)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: "Peng Chang \(Charles\)" <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Peng Chang (Charles) (ed3ced3522d3c6b4cb10c73fb4bedb63c6358b0e)
  • Date: Sun, 15 May 2011 07:37:44 -0500

GIT changes to master grimoire by Peng Chang (Charles) <chp AT sourcemage.org>:

cluster/atlas/BUILD | 13 ++-
cluster/atlas/DEPENDS | 7 +-
cluster/atlas/DETAILS | 5 -
cluster/atlas/HISTORY | 11 +++
cluster/atlas/PRE_BUILD | 2
cluster/atlas/emit_mm.patch | 154
--------------------------------------------
cluster/atlas/x86.patch | 15 ++++
7 files changed, 42 insertions(+), 165 deletions(-)

New commits:
commit ed3ced3522d3c6b4cb10c73fb4bedb63c6358b0e
Author: Peng Chang (Charles) <chp AT sourcemage.org>
Commit: Peng Chang (Charles) <chp AT sourcemage.org>

atlas: force_depends lapack when necessary

commit d79be23713e53ae7ab768f54f76ed272beb67700
Author: Peng Chang (Charles) <chp AT sourcemage.org>
Commit: Peng Chang (Charles) <chp AT sourcemage.org>

atlas: removed make fat_shared, added make check and make time

commit 8fd7dd901efc8dfe61e05e109d4c97aa6eeea5c3
Author: Peng Chang (Charles) <chp AT sourcemage.org>
Commit: Peng Chang (Charles) <chp AT sourcemage.org>

atlas: remove old patch and add new patch

commit c55e97d9c84add4f9ed83e51aea3a53d8f06d34d
Author: Peng Chang (Charles) <chp AT sourcemage.org>
Commit: Peng Chang (Charles) <chp AT sourcemage.org>

atlas: => 3.8.4

diff --git a/cluster/atlas/BUILD b/cluster/atlas/BUILD
index 6fe1c64..5721d75 100755
--- a/cluster/atlas/BUILD
+++ b/cluster/atlas/BUILD
@@ -13,13 +13,14 @@ make_single &&
make &&
cd lib &&
if [ $PT_LIB == y ]; then
- make ptshared &&
- # newer versions will have ptshared dependent on fat_ptshared
- make fat_ptshared
+ make ptshared
else
- make shared &&
- # newer versions will have shared dependent on fat_shared
- make fat_shared
+ make shared
fi &&
cd .. &&
+make check &&
+if [ $PT_LIB == y ]; then
+ make ptcheck
+fi &&
+make time &&
make_normal
diff --git a/cluster/atlas/DEPENDS b/cluster/atlas/DEPENDS
index e0d753e..826f0b0 100755
--- a/cluster/atlas/DEPENDS
+++ b/cluster/atlas/DEPENDS
@@ -1,4 +1,9 @@
-optional_depends fortran "" "--nof77" "for fortran bindings"
+optional_depends fortran "" "--nof77" "for fortran bindings" &&
if is_depends_enabled $SPELL fortran; then
optional_depends lapack "" "" "to build enhanced liblapack.a"
+fi &&
+
+# atlas needs a fresh liblapack.a from lapack, not a former processed one
+if is_depends_enabled $SPELL lapack && spell_ok $SPELL; then
+ force_depends lapack
fi
diff --git a/cluster/atlas/DETAILS b/cluster/atlas/DETAILS
index 071e758..478b5e0 100755
--- a/cluster/atlas/DETAILS
+++ b/cluster/atlas/DETAILS
@@ -1,10 +1,9 @@
SPELL=atlas
- VERSION=3.8.3
- PATCHLEVEL=2
+ VERSION=3.8.4
SOURCE=${SPELL}$VERSION.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/ATLAS
SOURCE_URL[0]=$SOURCEFORGE_URL/math-atlas/$SOURCE
-
SOURCE_HASH=sha512:4c152f1f5c49d9b0275e3c8755fc7808f5b298c9f92ea9958dbb771bc656da950e5136e36cbc3ff39542f17d12b719d9acd2c8ecc66382c6fe2dc4ad82bd9aa2
+
SOURCE_HASH=sha512:d0272b8a600512e24efc53863b34645d34506dac58908bf2f562245099badc4866eacf80ce9814af348bd1ddfaffdb7c0fb3b72d5f29c2255a80a0af1aa6ab1d
WEB_SITE=http://math-atlas.sourceforge.net
ENTERED=20020514
LICENSE[0]=BSD
diff --git a/cluster/atlas/HISTORY b/cluster/atlas/HISTORY
index bc1bade..5495ff6 100644
--- a/cluster/atlas/HISTORY
+++ b/cluster/atlas/HISTORY
@@ -1,3 +1,14 @@
+2011-05-15 Peng Chang (Charels) <chp AT sourcemage.org>
+ * BUILD: fat_shared is still not prevailing, added make check and
make time,
+ these takes only 2 min, but definitely worth keeping record
+ * DEPENDS: force_depends lapack when necessary
+ * DETAILS: updated to 3.8.4
+ * PRE_BUILD: patch archinfo_x86.c; there's no reference builds for
Corei2,
+ which will cause build failure and the detection for Corei2 is
buggy, so
+ only Corei1 will be used
+ * x86.patch: the patch for archinfo_x86.c
+ * emit_mm.patch: not necessary any more
+
2011-05-14 Peng Chang (Charles) <chp AT sourcemage.org>
* BUILD, CONFIGURE, INSTALL: shared library is common practice and
required by nearly all dependents; so it is no longer an option,
diff --git a/cluster/atlas/PRE_BUILD b/cluster/atlas/PRE_BUILD
index 1486f51..9dbaf8f 100755
--- a/cluster/atlas/PRE_BUILD
+++ b/cluster/atlas/PRE_BUILD
@@ -3,4 +3,4 @@ mkdir $SOURCE_DIRECTORY/bld &&

cd $SOURCE_DIRECTORY &&
patch configure $SPELL_DIRECTORY/configure.patch &&
-patch tune/blas/gemm/emit_mm.c $SPELL_DIRECTORY/emit_mm.patch
+patch CONFIG/src/backend/archinfo_x86.c $SPELL_DIRECTORY/x86.patch
diff --git a/cluster/atlas/emit_mm.patch b/cluster/atlas/emit_mm.patch
deleted file mode 100644
index 0ce40f2..0000000
--- a/cluster/atlas/emit_mm.patch
+++ /dev/null
@@ -1,154 +0,0 @@
-Generated by Charles Peng <chp AT sourcemage.org>
---- emit_mm.c 2009-02-19 02:48:25.000000000 +0800
-+++ emit_mm.c 2011-05-13 16:21:41.491001028 +0800
-@@ -1,5 +1,5 @@
- /*
-- * Automatically Tuned Linear Algebra Software v3.8.3
-+ * Automatically Tuned Linear Algebra Software v3.8.4
- * (C) Copyright 1997 R. Clint Whaley
- *
- * Redistribution and use in source and binary forms, with or without
-@@ -1638,7 +1638,7 @@ void MMDeclare(FILE *fpout, char *spc, c
- cTA, cTB, M, N, K);
- fprintf(fpout, " * lda=%d, ldb=%d, ldc=%d, mu=%d, nu=%d, ku=%d, pf=%d\n",
- lda, ldb, ldc, mu, nu, ku, pfA);
-- fprintf(fpout, " * Generated by ATLAS/tune/blas/gemm/emit_mm.c
(3.8.3)\n");
-+ fprintf(fpout, " * Generated by ATLAS/tune/blas/gemm/emit_mm.c
(3.8.4)\n");
- fprintf(fpout, " */\n");
- }
-
-@@ -3082,7 +3082,17 @@ int CompMultHandled(CLEANNODE *cp, int n
- * Returns 1 if nb is handled by succeeding case, 0 otherwise
- */
- {
-- for (; cp; cp = cp->next) if (nb % cp->imult == 0) return(1);
-+
-+ for (; cp; cp = cp->next)
-+ {
-+ if (cp->fixed == 2)
-+ {
-+ if (cp->imult == nb)
-+ return(1);
-+ }
-+ else if (nb % cp->imult == 0)
-+ return(1);
-+ }
- return(0);
- }
-
-@@ -3110,14 +3120,6 @@ int *GetCompNBs(enum CW which, CLEANNODE
- istop = cp0->nb;
- while (istop % cp0->imult) istop--;
- if (istop == cp0->nb) istop -= cp0->imult;
-- for (cp=cp0->next; cp; cp = cp->next)
-- {
-- if (cp->imult % cp0->imult == 0 && cp->fixed != 2)
-- {
-- istop = cp->imult;
-- break;
-- }
-- }
-
- for (i=2*cp0->imult; i <= istop; i += cp0->imult)
- {
-@@ -3582,7 +3584,7 @@ void GenUpNB_if(char pre, enum CW which,
- CLEANNODE *wp, *cp0;
- FILE *fp;
- int i;
-- const char *ifs = "else if", *ifp;
-+ const char *ifs = "else if", *ifp, *sp;
- const char cwh[3] = {'M', 'N', 'K'};
- char ln[128], st[2], *typ;
-
-@@ -3613,7 +3615,11 @@ void GenUpNB_if(char pre, enum CW which,
-
- if (pre == 'c') pre = 'C';
- else if (pre == 'z') pre = 'Z';
--
-+/*
-+ * fixed=2 means a kernel specialized for that exact N. They will have not
-+ * survived pruning if they weren't better than all the general algorithms,
-+ * so we can test for them all up front
-+ */
- for (cp=cp0; cp; cp = cp->next) /* handle fixed = 2 cases */
- {
- if (cp->fixed == 2)
-@@ -3625,36 +3631,49 @@ void GenUpNB_if(char pre, enum CW which,
- ifp = ifs;
- }
- }
--
-- for (cp=cp0; cp; cp = cp->next) /* fixed = 1 cases */
-- {
-- if (cp->fixed == 1)
-- {
-- for (i=cp->ncomps-1; i >= 0; i--)
-- {
-- if (cp->imult > 1)
-- fprintf(fp, " %s (%c == %d)\n", ifp, cwh[which],
cp->NBs[i]);
-- else fprintf(fp, " else\n");
-- fprintf(fp, " {\n ATL_%cup%cBmm%d_%d_%d_b%c%s;\n }\n",
-- pre, cwh[which], cp->NBs[i], cp->imult, cp->fixed,
-- cbeta, MMARGS);
-- ifp = ifs;
-- }
-- }
-- }
-- for (cp=cp0; cp; cp = cp->next) /* fixed = 0 cases */
-- {
-+/*
-+ * All remaining kernels are selected by being a multiple of imult;
-+ * fixed=0 will be called directly, while fixed=1 will have a nested
-+ * if to find the right compiled version to call
-+ */
-+ for (cp=cp0; cp; cp = cp->next) /* fixed = 0/1 cases */
-+ {
-+ if (cp->fixed != 1 && cp->fixed != 0)
-+ continue;
-+ if (cp->imult > 1)
-+ fprintf(fp, " %s (%c == %s)\n", ifp, cwh[which],
-+ GetInc(cp->imult, GetDiv(cp->imult, st)));
-+ else if (ifp == ifs) fprintf(fp, " else\n");
- if (cp->fixed == 0)
- {
-- if (cp->imult > 1)
-- fprintf(fp, " %s (%c == %s)\n", ifp, cwh[which],
-- GetInc(cp->imult, GetDiv(cp->imult, st)));
-- else if (ifp == ifs) fprintf(fp, " else\n");
- fprintf(fp, " {\n ATL_%cup%cBmm0_%d_%d_b%c%s;\n }\n",
- pre, cwh[which], cp->imult, cp->fixed, cbeta, MMARGS);
- ifp = ifs;
- }
-+ else if (cp->fixed == 1)
-+ {
-+ fprintf(fp, " {\n");
-+ if (cp->ncomps == 1)
-+ fprintf(fp, " ATL_%cup%cBmm%d_%d_%d_b%c%s;\n",
-+ pre, cwh[which], cp->NBs[0], cp->imult, cp->fixed,
-+ cbeta, MMARGS);
-+ else /* must select kernel by NB[i] */
-+ {
-+ sp = "if";
-+ for (i=cp->ncomps-1; i >= 0; i--)
-+ {
-+ fprintf(fp, " %s (%c == %d)\n", sp, cwh[which],
cp->NBs[i]);
-+ fprintf(fp,
-+ " {\n ATL_%cup%cBmm%d_%d_%d_b%c%s;\n }\n",
-+ pre, cwh[which], cp->NBs[i], cp->imult, cp->fixed,
-+ cbeta, MMARGS);
-+ sp = "else if";
-+ }
-+ }
-+ fprintf(fp, " }\n");
-+ }
- }
-+
- for (cp=cp0; cp && cp->imult != 1; cp = cp->next);
- if (!cp)
- {
-@@ -4330,3 +4349,5 @@ main(int nargs, char **args)
- }
- exit(0);
- }
-+
-+
diff --git a/cluster/atlas/x86.patch b/cluster/atlas/x86.patch
new file mode 100644
index 0000000..ad5d680
--- /dev/null
+++ b/cluster/atlas/x86.patch
@@ -0,0 +1,15 @@
+--- archinfo_x86.c 2011-05-15 12:43:52.101001247 +0800
++++ archinfo_x86.c 2011-05-15 12:44:16.568001255 +0800
+@@ -309,11 +309,9 @@ enum MACHTYPE Chip2Mach(enum CHIP chip,
+ case 0x1A:
+ case 0x1E:
+ case 0x1F:
+- iret = IntCorei1;
+- break;
+ case 0x25:
+ case 0x2A:
+- iret = IntCorei2;
++ iret = IntCorei1;
+ break;
+ default:
+ iret = MACHOther;



  • [SM-Commit] GIT changes to master grimoire by Peng Chang (Charles) (ed3ced3522d3c6b4cb10c73fb4bedb63c6358b0e), Peng Chang (Charles), 05/15/2011

Archive powered by MHonArc 2.6.24.

Top of Page