From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16265 invoked from network); 9 Dec 1999 08:35:03 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 9 Dec 1999 08:35:03 -0000 Received: from nova.bru.ed.ac.uk (nova.bru.ed.ac.uk [129.215.237.139]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id DAA31174 for ; Thu, 9 Dec 1999 03:35:03 -0500 Received: from localhost (sss@localhost) by nova.bru.ed.ac.uk (8.9.3/8.9.3) with ESMTP id IAA22598 for ; Thu, 9 Dec 1999 08:35:02 GMT Date: Thu, 9 Dec 1999 08:35:02 +0000 (GMT) From: Shane Sturrock To: axp-list@redhat.com Subject: Re: SV: suggestions for udb In-Reply-To: <384EC03A.B6DCFD84@paralleldata.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 8 Dec 1999, Wes Bauske wrote: > > There sure are, for the same algorithm coded for the 64 bit architecture > > we are now hitting 182 million on the 164LX compared with the 9 million > > the celeron 400 gets. > > Would you care to elaborate on your performance change > vs your last note? OK, I'll expand a little on it. > > The only way I know of to improve code performance by over > 7x (25->182) is to either drastically alter the algorithm Typically in my field this is the approach taken, the Smith and Waterman algorithm is described as an exhaustive dynamic programming algorithm and is considered too time consuming to run on general purpose processors. The usual way to deal with this is to run it on supercomputers (we used to use a MasPar with 16384 processing elements) or to use some form of custom chip in the form of dedicated silicon or a programmable gate array chip. For workstation use the usual method is to use an heuristic method which disposes of a large portion of the database by a simple prefilter scan which can be performed very quickly. These generally rely on doing word matches and sequences are scored based on the number of word matches they have, then a Smith and Waterman algorithm is used on any likely matches, typically 1-10% of the database. This method while fast runs the risk of losing significant hits thus it would be preferable to have a full Smith and Waterman algorithm but the cost of hardware puts limits on this. > or to compare optimized compiles against non-optimized > compiles. The first is valid but then you compare apples > and oranges. The second bears little resemblance to a valid > performance comparison. Indeed. However, there is a third way. > > If you have a third way, I'd like to hear about it. Micro-parallelism which uses the 64 bit word to do multiple integer operations on several less than 64 bit numbers. By using this we can do the full Smith and Waterman algorithm at the sort of speeds others are getting from the cut down heuristic algorithms and not suffer the sensitivity penalties that they do. It's really neat stuff! Here is a reference that covers the topic pretty thoroughly: http://www.supercomp.org/sc95/proceedings/549_LCAR/SC95.HTM This was the work that got us interested. Shane