From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 843743ED7D for ; Wed, 11 Sep 2002 10:53:17 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g8BErCG17458 for axp-list@listman.redhat.com; Wed, 11 Sep 2002 10:53:12 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g8BErCk17454 for ; Wed, 11 Sep 2002 10:53:12 -0400 Received: from zmamail04.zma.compaq.com (zmamail04.zma.compaq.com [161.114.64.104]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g8BEajw26213 for ; Wed, 11 Sep 2002 10:36:45 -0400 Received: from tayexg11.americas.cpqcorp.net (tayexg11.americas.cpqcorp.net [16.103.130.96]) by zmamail04.zma.compaq.com (Postfix) with ESMTP id C3C71425C for ; Wed, 11 Sep 2002 10:53:11 -0400 (EDT) Received: from tayexc19.americas.cpqcorp.net ([16.103.130.43]) by tayexg11.americas.cpqcorp.net with Microsoft SMTPSVC(5.0.2195.2966); Wed, 11 Sep 2002 10:53:11 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: Alpha Optimization Date: Wed, 11 Sep 2002 10:53:11 -0400 Message-ID: <5574611531FC684C954FEFEDA16EA40F01D0C7BF@tayexc19.americas.cpqcorp.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Alpha Optimization Thread-Index: AcJZJcNDOHOur2P4RPKf+7w8t5forgAdprCQ From: "Block, Kenneth" To: X-OriginalArrivalTime: 11 Sep 2002 14:53:11.0648 (UTC) FILETIME=[F303C600:01C259A2] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by int-mx1.corp.redhat.com id g8BErCk17454 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: You might try -fast for ccc, although for my experiments it did not help. I tried the change unsigned char to unsigned longs and that made it slower. I think the issue here is that the P4 is very competitive for integer operations. As for caching, what are the cache sizes for the processors? For Alpha, I believe it is 64KB. For AMD, I believe it is 64K. What is it for the P4? -----Original Message----- From: Rui-Tao Dong [mailto:rdong@cox.net] Sent: Tuesday, September 10, 2002 7:56 PM To: axp-list@redhat.com Subject: Alpha Optimization I haven't seen much traffic on the list for while. Here is a question for you guys. I am trying to divide two 8 bit images (A*256/B) as fast as possible. I built a lookup table of all possible combinations of A & B (64KB) and do the lookup on the images. On a 2.0GHz P4, it takes about 28msec on a 1280x1024x24 images. On the 1.0GHz ev68 (at Compaq testdrive), it takes about 57msec, which is very disappointing. I was expecting the Alpha to be much faster due to its larger L1 cache and faster memory IO. The relevant code is below. I tried both gcc -O6 and ccc -O3. pTab is the pre-constructed 256x256 lookup table, with numerator as the row index and denominator as the column index. typedef unsigned char pixel8; for (l=0; l<100; ++l) { pixel8* pOut = output_buf; const pixel8* pN = input_buf; const pixel8* pD = white_buf; int r; for (r=0; r< HEIGHT; ++r) { int c; for (c=0; c< WIDTH*3; ++c) { int i = ((*pN)<<8) + (*pD); *pOut = pTab[i]; ++pN; ++pD; ++pOut; } } } Any idea? Regards, -- Dr. Rui-Tao Dong Aria Systems, Inc. (949)291-XXXX(Cell) P. O. Box 52123 rdong@cox.net Irvine, CA 92619 _______________________________________________ Axp-list mailing list Axp-list@redhat.com https://listman.redhat.com/mailman/listinfo/axp-list