aboutsummaryrefslogtreecommitdiff
path: root/math/atlas-devel/files/patch-config.c
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2004-01-20 01:24:34 +0000
committerMaho Nakata <maho@FreeBSD.org>2004-01-20 01:24:34 +0000
commita1995689bbc17adb6446aeeb5e289028fab04337 (patch)
tree77d82285a038d69301055505093a1ff24d948b45 /math/atlas-devel/files/patch-config.c
parentb7b62a4e3603106f09d27e9c3cf06c33c182e42d (diff)
Notes
Diffstat (limited to 'math/atlas-devel/files/patch-config.c')
-rw-r--r--math/atlas-devel/files/patch-config.c41
1 files changed, 32 insertions, 9 deletions
diff --git a/math/atlas-devel/files/patch-config.c b/math/atlas-devel/files/patch-config.c
index 458bbbb4d032..4f6773eacf38 100644
--- a/math/atlas-devel/files/patch-config.c
+++ b/math/atlas-devel/files/patch-config.c
@@ -34,6 +34,15 @@
}
}
return(*comp ? comp : NULL);
+@@ -2801,7 +2801,7 @@
+ else if (strstr(ln, "ia64")) la = LAIA64;
+ else if ( strstr(ln, "i686") || strstr(ln, "i586") ||
+ strstr(ln, "i486") || strstr(ln, "i386") ||
+- strstr(ln, "x86_64") ) la = LAX86;
++ strstr(ln, "x86_64") || strstr(ln, "amd64") ) la = LAX86;
+ }
+ return(la);
+ }
@@ -2840,7 +2842,10 @@
if (!CmndOneLine(targ, "sysctl hw.model", ln))
{
@@ -51,7 +60,7 @@
if (strstr(ln, "Pentium Pro")) mach = IntPPRO;
+ else if (strstr(ln, "Pentium(R) Pro")) mach = IntPPRO;
+ else if (strstr(ln, "Pentium 4")) mach = IntP4;
-+ else if (strstr(ln, "Pentium(R) 4")) mach = IntP4;
++ else if (strstr(ln, "Pentium(R) 4")) mach = IntP4;
else if (strstr(ln, "Pentium III")) mach = IntPIII;
+ else if (strstr(ln, "Pentium(R) III")) mach = IntPIII;
else if (strstr(ln, "Pentium II ")) mach = IntPII;
@@ -70,15 +79,29 @@
}
break;
default:;
-@@ -3939,6 +3952,8 @@
- USEDEFL1 = !IsYes('y', "", "Tune the Level 1 BLAS?");
+@@ -3654,8 +3654,8 @@
+ }
+ if (THREADS) /* add ncpu to ARCH */
+ {
+- for (i=0; ARCH[i]; i++);
+- sprintf(ARCH+i, "_%d", ncpu);
++// for (i=0; ARCH[i]; i++); // do not add number of cpu for ARCHNAME
++// sprintf(ARCH+i, "_%d", ncpu); // #cpu can be different in general
}
-
-+ fprintf(fpout, "%s", ARCH);
-+ fclose(fpout);
- ATL_mprintf(2, fplog, stdout,"\nCreating make include file Make.%s\n", ARCH);
- sprintf(ln, "Make.%s", ARCH);
- fpout = fopen(ln, "w");
+ do
+ {
+@@ -4064,9 +4063,9 @@
+ if (mach == IA64Itan || mach == IA64Itan2 )
+ fprintf(fpout, " -DATL_MAXNREG=128");
+ if (ASMD != ASM_None) fprintf(fpout, " -DATL_%s", ASMNAM[ASMD]);
+- if (mach == AmdHammer32 && (OS != OSWinNT && OS != OSWin9x))
++ if (mach == AmdHammer32 && (OS != OSWinNT && OS != OSWin9x && OS != OSFreeBSD))
+ fprintf(fpout, " -m32");
+- else if (mach == AmdHammer64) fprintf(fpout, " -m64");
++ else if (mach == AmdHammer64 && (OS != OSFreeBSD)) fprintf(fpout, " -m64");
+ if (mach == IA64Itan2 && strstr(CC, "icc"))
+ fprintf(fpout, " -DATL_IntelIccBugs");
+ fprintf(fpout, "\n\n");
@@ -4080,7 +4095,7 @@
if (THREADS)
{