Date: Sun, 7 Jul 2002 21:14:17 -0700 (PDT) From: Nakata Maho <chat95@mbox.kyoto-inet.or.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/40321: The port math/atlas is slow on Pentium 4 machines Message-ID: <200207080414.g684EHE1032858@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 40321
>Category: misc
>Synopsis: The port math/atlas is slow on Pentium 4 machines
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 07 21:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Nakata Maho
>Release: 4.6-stable
>Organization:
private
>Environment:
FreeBSD scarlatti.synchem.kyoto-u.ac.jp 4.6-STABLE FreeBSD 4.6-STABLE #1: Fri Jul 5 18:04:37 JST 2002 maho@tonton.synchem.kyoto-u.ac.jp:/work/cvsup/src/sys/compile/MAHO-TONTON-4.x-STABLE i386
>Description:
I found that this port doesn't make use of
Pentium 4 architecture.
>How-To-Repeat:
Just build on Pentium4 machines, machine detection fails
and produces ONLY Pentium(!) optimized binary.
>Fix:
diff -ur /work/cvsup/ports/math/atlas/files/patch-aa atlas/files/patch-aa
--- /work/cvsup/ports/math/atlas/files/patch-aa Sun Jun 23 05:32:57 2002
+++ atlas/files/patch-aa Mon Jul 8 12:55:47 2002
@@ -1,6 +1,13 @@
--- config.c.orig Mon Jun 17 10:37:24 2002
-+++ config.c Fri Jun 21 09:23:31 2002
-@@ -2055,6 +2055,7 @@
++++ config.c Mon Jul 8 12:55:32 2002
+@@ -2049,12 +2049,14 @@
+ if (!CmndOneLine(targ, "sysctl hw.model", ln))
+ {
+ if (strstr(ln, "Pentium Pro")) mach = IntPPRO;
++ else if (strstr(ln, "Pentium 4")) mach = IntP4;
+ else if (strstr(ln, "Pentium III")) mach = IntPIII;
+ else if (strstr(ln, "Pentium II ")) mach = IntPII;
+ else if (strstr(ln, "Athlon")) mach = AmdAthlon;
else if (strstr(ln, "AMD-K7")) mach = AmdAthlon;
else if (strstr(ln, "Pentium/P55C")) mach = IntP5MMX; /* sent by */
else if (strstr(ln, "Pentium")) mach=IntP5; /* Nakata Maho */
@@ -8,7 +15,7 @@
}
break;
default:;
-@@ -3024,6 +3025,9 @@
+@@ -3024,6 +3026,9 @@
}
if (USEWINF77) strcpy(F77, "$(BINdir)/winf77.exe");
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207080414.g684EHE1032858>
