diff options
author | Maho Nakata <maho@FreeBSD.org> | 2003-07-02 21:39:36 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2003-07-02 21:39:36 +0000 |
commit | 28dd30949afb50add2b845fcc3e01c37a3ee7b83 (patch) | |
tree | b9cdc243064c03392aa301bec91c5c76a62dc632 /math/atlas/files/thread-patch | |
parent | Add a better patch to fix the va_list problem. (diff) |
build both threaded/non-threaded libraries
which introduced some kludge...
Reported by: kris (broken on bento for lapack++)
Suggestion from: "Pedro F. Giffuni" <giffunip@yahoo.com>
Diffstat (limited to 'math/atlas/files/thread-patch')
-rw-r--r-- | math/atlas/files/thread-patch | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/math/atlas/files/thread-patch b/math/atlas/files/thread-patch index 1660248f74fe..4d1a00c71f47 100644 --- a/math/atlas/files/thread-patch +++ b/math/atlas/files/thread-patch @@ -1,11 +1,28 @@ ---- config.c~ Wed Jun 11 11:25:09 2003 -+++ config.c Wed Jun 11 11:35:08 2003 +--- config.c.orig Tue Jul 1 12:35:09 2003 ++++ config.c Tue Jul 1 12:35:44 2003 @@ -79,7 +79,7 @@ char *usermmnam[2] = {"", "GOTO"}; enum USERGEMM {UG_None=0, UG_GOTO}; -int XCOMP=0, THREADS=0, USEWINF77=0, NLINES=0, ISWIN=0; -+int XCOMP=0, THREADS=1, USEWINF77=0, NLINES=0, ISWIN=0; //force threading ++int XCOMP=0, THREADS=1, USEWINF77=0, NLINES=0, ISWIN=0; // force threading char TARGNAM[512]; enum MACHTYPE mach=MACHOther; +@@ -2737,7 +2737,6 @@ + Use3DNow = IsYes('n', " ", "Use 3DNow! for computation?"); + } + ncpu = ProbeNCPU(OS, mach, targ, TOPdir); +- ncpu = 1; // force non-threading + if (ncpu != 1) /* user may want to thread */ + { + DisplayFile("CONFIG/pthread.txt", stdout, NLINES); +@@ -3155,7 +3154,7 @@ + } + if (USEWINF77) strcpy(F77, "$(BINdir)/winf77.exe"); + +- fpout = fopen("ARCHNAME-NON-THREADED", "w"); ++ fpout = fopen("ARCHNAME-THREADED", "w"); + fprintf(fpout, "%s", ARCH); + fclose(fpout); + ATL_mprintf(2, fplog, stdout,"\nCreating make include file Make.%s\n", ARCH); |