From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3567d4ae1ce1d0a3 X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,1d6673b85a87920a X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,3567d4ae1ce1d0a3 X-Google-Attributes: gid102b75,public X-Google-Thread: f57db,68ab921d4ad77a90 X-Google-Attributes: gidf57db,public From: lamaster@viking.arc.nasa.gov (Hugh LaMaster) Subject: Re: P6 vs Alpha (was Re: Pro vs. Mips/Alpha) Date: 1996/07/25 Message-ID: <4t8hmo$rkj@onramp.arc.nasa.gov>#1/1 X-Deja-AN: 170130811 references: <4svpfb$ifq@news-rocq.inria.fr> <4t0e7e$n1c@onramp.arc.nasa.gov> <4t5qfl$2cp@hermes.synopsys.com> organization: NASA Ames Research Center newsgroups: comp.sys.intel,comp.sys.dec,comp.arch,comp.benchmarks In article <4t5qfl$2cp@hermes.synopsys.com>, jbuck@synopsys.com (Joe Buck) writes: |> Public-key cryptography seems the natural problem to put into a |> benchmark; it does present export issues, but perhaps the benchmark can |> simply consist of a series of kernels useful in public-key applications |> with no actual crypto code. I agree. I see no reason why actual crypto code has to be in such a benchmark, and besides, crypto- people are by no means the only people interested [from the Science point of view, although from the commodity-PC point of view, the other markets are probably small]. |> >So, I would urge you and others with similar requirements to agree |> >on a representative benchmark of your requirements, write a |> >portable, standard implementation of the benchmark, preferably |> >in portable C, define what are allowable optimizations and |> >what are not, and benchmark some representative systems |> >yourselves. |> "Portable C" may present a bit of a problem -- at minimum, some |> host-dependent typedefs would be needed. Given typedefs for two C |> integral types, one of which is exactly twice the size of the other, a |> portable arbitrary-precision arithmetic package can be written in C, but |> the choice of what types to use is host-dependent (they should be the |> largest types available on the processor). For most hosts, a |> substantially faster routine can be written in assembler (using |> add-with-carry instructions that C compilers will generally not use). I agree completely, 100%. [Is that allowed on Usenet ;-) ]. My suggestion about portable C was to provide a reference or standard implementation, to provide a sanity check on performance and results. But, clearly, the whole point to such a benchmark is to define a user interface such that really good optimizations can be done underneath it, to encourage vendors to provide hardware support for fast performance. Untouchable portable C as the benchmark itself would defeat the entire purpose. There should be a well-defined user interface, with any kind of optimization, hardware or software, allowed underneath. |> Perhaps some reasonable way can be found to proceed anyway. One |> possibility is to specify the interface of certain C-callable library |> routines. Vendors would be permitted to implement these routines however |> they like, and portable programs could be written by using the standard |> interfaces. The GNU mp library interface is one possibility: there is |> already a second implementation of this same interface, called FGMP, |> because some people needed a non-GPLed implementation. This library |> contains all the arbitrary-precision arithmetic needed to do public-key |> cryptography. Interesting. I was not aware of the mp/FGMP common interface. Is there a general consensus about the broad suitability of this? [The fact that the library was re-implemented suggests yes...] If so, this may be the right interface to build the benchmark on. -- Hugh LaMaster, M/S 233-18, Email: Please send ASCII documents to: NASA Ames Research Center Internet: lamaster@ames.arc.nasa.gov Moffett Field, CA 94035-1000 Or: lamaster@george.arc.nasa.gov Phone: 415/604-1056 Disclaimer: Unofficial, personal *opinion*.