From owner-freebsd-stable@FreeBSD.ORG Tue Apr 13 23:21:16 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C2E6106566B for ; Tue, 13 Apr 2010 23:21:16 +0000 (UTC) (envelope-from maho.nakata@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4026B8FC08 for ; Tue, 13 Apr 2010 23:21:15 +0000 (UTC) Received: by gwaa12 with SMTP id a12so4061684gwa.13 for ; Tue, 13 Apr 2010 16:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:message-id:to:cc :subject:from:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=KDLSUxsF1AvFpWXDGoq0Xcp0YchMt/esNN/pco63RC0=; b=C/16Zm7WcPeW0kba4UaOcIGsC18ENTQtszKK7G5XKN4RNJhkLO43z9MTnXqYtapk87 nJNUcLbwHHzCufc0IPKnNqblsiN3f61Hy5mDDeFTDnkmb/jhLFh4CAzSjfPSKIABdIll 8Aw82n6wvEq7hpBRzbTL4o2PM6EJTxKlC3wWQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:message-id:to:cc:subject:from:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; b=AzkkqqFbRdtJwplYE/pd3PR6CfdbdBKiHlkB+g0Pbw4YBhV5Hl7ZM1iJMxwB/3/80P R1uao2eb9R04w6eRMCkYl4GykUo1BtBx7NtBrbm7QiPETpF7uTA4lRSdrFQD7FCPSDEl TSJevLAxKMZA8VnvOwRpGAWXZuhvyiJJy2MUE= Received: by 10.101.130.15 with SMTP id h15mr11519478ann.211.1271200874708; Tue, 13 Apr 2010 16:21:14 -0700 (PDT) Received: from localhost (rikad42.riken.jp [134.160.214.42]) by mx.google.com with ESMTPS id 8sm1517293yxb.43.2010.04.13.16.21.11 (version=SSLv3 cipher=RC4-MD5); Tue, 13 Apr 2010 16:21:13 -0700 (PDT) Sender: Maho NAKATA Date: Wed, 14 Apr 2010 08:21:09 +0900 (JST) Message-Id: <20100414.082109.29593248145846106.chat95@mac.com> To: alc@freebsd.org, alan.l.cox@gmail.com From: Maho NAKATA In-Reply-To: References: <4BC402B7.5000400@modulus.org> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, als@modulus.org Subject: How to reproduce: Re: Only 70% of theoretical peak performance on FreeBSD 8/amd64, Corei7 920 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 23:21:16 -0000 Hi all, thanks for showing interest in this issue. I uploaded my test code so that you can test on your PC. Following is the instruction. 1. download my source codes. http://people.freebsd.org/~maho/dgemm/Makefile http://people.freebsd.org/~maho/dgemm/dgemm.cpp check md5. % md5 Makefile dgemm.cpp MD5 (Makefile) = b408ab1e1f5bf8b923cae5ec9f9f0f07 MD5 (dgemm.cpp) = 0d774a456a665429c67c2b07fd24c64c 2. install ports/math/gotoblas (manual download required) make install 3. compile dgemm.cpp just type make % make g++44 -pthread -static -O2 -o dgemm dgemm.cpp -L/usr/local/lib -lgoto2p g++44 -pthread -static -O2 -o dgemm_ref dgemm.cpp -L/usr/local/lib -lblas -lgfortran 4. run dgemm. % ./dgemm n: 3000 time : 134.648208 or 16.910525 Mflops : 31943.419695 n: 3100 time : 148.122279 or 18.615284 Mflops : 32017.357408 n: 3200 time : 162.488885 or 20.430651 Mflops : 32087.318295 n: 3300 time : 178.497079 or 22.446093 Mflops : 32030.420499 n: 3400 time : 195.550715 or 24.586152 Mflops : 31981.873273 n: 3500 time : 213.403379 or 26.825058 Mflops : 31975.513363 n: 3600 ... above output is on Core i7 920 (2.66GHz; TurboBoost on) Thanks -- Nakata Maho http://accc.riken.jp/maho/ , http://ja.openoffice.org/ Nakata Maho's PGP public keys: http://accc.riken.jp/maho/maho.pgp.txt