From owner-freebsd-bugs Sun Jul 7 21:20:10 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC3EE37B401 for ; Sun, 7 Jul 2002 21:20:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E78B43E52 for ; Sun, 7 Jul 2002 21:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g684K2JU007745 for ; Sun, 7 Jul 2002 21:20:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g684K2pQ007744; Sun, 7 Jul 2002 21:20:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12F4837B400 for ; Sun, 7 Jul 2002 21:14:18 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C846543E31 for ; Sun, 7 Jul 2002 21:14:17 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g684EHOT032859 for ; Sun, 7 Jul 2002 21:14:17 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g684EHE1032858; Sun, 7 Jul 2002 21:14:17 -0700 (PDT) Message-Id: <200207080414.g684EHE1032858@www.freebsd.org> Date: Sun, 7 Jul 2002 21:14:17 -0700 (PDT) From: Nakata Maho To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/40321: The port math/atlas is slow on Pentium 4 machines Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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