Skip to content

GRAPE Special-Purpose Supercomputers

Abstract

GRAPE (GRAvity PipE) was a family of computers built at the University of Tokyo from 1989 that did one thing: calculate the gravitational pull between every pair of stars in a simulated star cluster or galaxy, while an ordinary workstation did everything else. The astrophysicist Daiichiro Sugimoto started it to settle an argument about collapsing star clusters; Junichiro Makino, a graduate student when the first machine was built, turned it into a series. GRAPE-1 (1989) cost about $2,000, GRAPE-4 (1995) reached a theoretical peak of 1.08 teraflops on a budget of about 200 million yen, and GRAPE machines won Gordon Bell prizes in 1995, 1996, and 1999. A RIKEN offshoot for molecular dynamics, MDGRAPE-3, was announced in 2006 with a theoretical peak of one petaflops. Rising chip design costs and cheap graphics processors made the approach hard to justify after about 2010, and some of the same people went on to win prizes with GPUs and general-purpose supercomputers.

A Disputed Oscillation

Daiichiro Sugimoto (杉本大一郎), born in Kyoto in 1937, was a theorist of stellar evolution at the University of Tokyo, associate professor from 1970 and professor from 1984. In 1983 he and his colleague Bettwieser computed the late evolution of a globular cluster with a gas model and found that, after the core collapses, it does not settle down but expands and contracts again in irregular pulses, which they named gravothermal oscillation. Sugimoto saw it as the same physics as the recurrent flashes of helium burning in a star. The specialists in stellar dynamics objected: a cluster is a finite number of discrete stars, close encounters are rare, and a star kicked out of a binary might simply escape before it could heat the cluster. Sugimoto later wrote that he “confronted with the burden to show” which mattered more, self-gravity or discreteness.

Only a direct N-body simulation with many stars could settle it, and that was expensive. Every star pulls on every other, so each time step costs on the order of N² force calculations. Tree codes reduce the cost when lower accuracy is acceptable, but in the dense core of a collapsing cluster the simple direct sum is the robust choice. Sugimoto needed, as he put it, “a computer much faster than commercially available one at practically reasonable cost”. This was one of his strongest motives for building one.

GRAPE-1

The idea, which Sugimoto’s group published in Nature in May 1990, was to split the work. A host computer integrates the orbits, handles input and output, and sends the positions of all stars to a GRAPE, a pipeline that does nothing but compute the force on each star from all the others and return the sums. Because the host’s work grows only linearly with N while the force calculation grows with N², a GRAPE that is N times faster than the host keeps the whole system balanced. Sugimoto called the arrangement a GRAvitational PipelinE; his collaborator Piet Hut at the Institute for Advanced Study in Princeton compared it to a graphics accelerator.

The project started in 1988 or 1989 (Makino and Sugimoto give different years). GRAPE-1, finished in 1989, was a single board with about a hundred commercially available chips, connected by wire-wrapping. Makino recalled that “none of the original design and development team of GRAPE-1 had the knowledge of electronic circuits more than what was learned in basic undergraduate courses for physics students”. To keep the hardware simple they used 16-bit fixed point for the position differences, 48-bit fixed point for the accumulated force, and an 8-bit logarithmic format for everything in between, after a careful analysis of how the errors propagated. The board cost about $2,000 and ran at an equivalent of 240 MFLOPS by Sugimoto’s count (Makino’s table says 310), comparable to a supercomputer of the day for this one problem.

The numbering followed a rule: odd-numbered GRAPEs used short words and low accuracy, good enough for collisionless systems such as galaxies, and even-numbered ones used 32- and 64-bit formats for collisional systems such as star clusters. GRAPE-2, built from commercial floating-point chips, ran at about 40 MFLOPS but with high accuracy.

GRAPE-3 and GRAPE-4

GRAPE-3 (1990–1991) put the whole GRAPE-1 pipeline onto one custom chip, made by National Semiconductor in a 1-micrometre process with 110,000 transistors and running at 20 MHz. Boards with eight chips reached 6.4 GFLOPS, and GRAPE-3 was the first GRAPE manufactured and sold by a commercial company: nearly a hundred copies went to more than 30 institutes, over 20 of them outside Japan. Makino and Hut used one to aim “beams” of galaxies at “target plates” of other galaxies and measure how often they merged.

GRAPE-4 was the high-accuracy machine Sugimoto’s argument needed. Its HARP chip, made by LSI Logic in a 1-micrometre process with about 400,000 transistors, computed the force and its time derivative, so that the host could use the fourth-order Hermite integration scheme that Makino and Aarseth had published in 1992. Eight chips went on a multi-chip module, six modules on a board, nine boards in a cabinet, and four cabinets made the machine: 1,728 pipelines at 32 MHz, for a theoretical peak of 1.08 TFLOPS when it was completed in 1995. Sugimoto put the budget at 200 million yen (about $1.6 million) from the education ministry’s Grant-in-Aid for Specially Promoted Research; Makino and his co-authors gave 240 million yen.

In 1995 Makino and Makoto Taiji (泰地真弘人) received the Gordon Bell Prize for a simulation of two black holes in the core of a galaxy with 128k particles, which ran at a sustained 112 GFLOPS on one-sixth of the machine. In 1996 Toshiyuki Fukushige and Makino won it again for 332 GFLOPS on three-quarters of GRAPE-4, simulating the formation of a dark matter halo with 768k particles. The result Sugimoto had wanted came in the same year: Makino’s runs with up to 32,000 stars showed gravothermal oscillations clearly above the statistical noise, and their scaling with N matched the theory. More than 40 smaller GRAPE-3 and GRAPE-4 systems were in use at astronomical institutes around the world by 1998.

Misconception: GRAPE-4 was the first computer to run at a teraflops

The 1.08 TFLOPS of GRAPE-4 in 1995 is a theoretical peak, counted in operations of a fixed-function pipeline that only computes gravitational forces. Its prize-winning sustained results were 112 GFLOPS in 1995 and 332 GFLOPS in 1996. Even the project’s collaborator Piet Hut described it as “the first computer rated at a speed of 1 Teraflops” and linked the 1995 Gordon Bell Prize to that figure, although the prize was for the 112 GFLOPS run. The first general-purpose machine above a teraflops on the Linpack benchmark was Intel’s ASCI Red at Sandia, with 1.068 TFLOPS on the TOP500 list of June 1997. GRAPE-4 was the first machine with a teraflops peak, and a general-purpose machine was the first to sustain one on a standard benchmark, two years later. See Myths and Misconceptions.

Sugimoto reached the University of Tokyo’s retirement age in the spring of 1997. The group split the work in two. Junichiro Makino (牧野淳一郎), who had come to the project as a graduate student (he took his doctorate in 1990), continued the astrophysical line towards a petaflops with a grant from the Japan Society for the Promotion of Science. Toshikazu Ebisuzaki (戎崎俊一) took the approach to RIKEN to build machines for molecular dynamics, the simulation of proteins and materials atom by atom.

GRAPE-5 and GRAPE-6

GRAPE-5 (1996–1999) improved on GRAPE-3: two full pipelines on a chip made by NEC in a 0.35-micrometre process, running at 80 MHz. It won the Gordon Bell Prize for price-performance in 1999. GRAPE-6 (1997–2002) scaled up GRAPE-4. Its chip, first delivered in early 1999, held six pipelines in a 0.25-micrometre process, ran at 90 MHz, and reached 31 GFLOPS; 2,048 of them in 64 boards gave a peak of about 64 TFLOPS. In the summer of 2001 four finished cabinets ran at 32 TFLOPS, and a single GRAPE-6 board was as fast as the whole GRAPE-4 of six years before. Single boards were sold to individual research groups: according to Hut, less than $100,000 bought a one-teraflops system for stellar dynamics.

The economics were in the chip. A GRAPE could spend nearly all of its transistors on arithmetic, because the pipeline needed little memory bandwidth and each unit could use exactly the precision its step required: 64-bit fixed point for subtracting positions, single precision for most of the force calculation, fixed point again for the sum. GRAPE-6 packed more than 300 arithmetic units into a chip with fewer than ten million transistors. Makino later calculated that it needed about a hundredth as many transistors per arithmetic unit as Nvidia’s Fermi GPU.

MDGRAPE at RIKEN

At RIKEN Ebisuzaki’s group built a machine for molecular dynamics in two parts: WINE-2, for the long-range electrostatic forces computed with Fourier methods, and MDGRAPE-2, for the short-range forces. WINE-2, completed in November 1999 with 2,688 WINE chips, had a peak above 50 TFLOPS, which RIKEN put at about 18 times ASCI Red. The MDGRAPE-2 chip was developed with IBM Japan’s Tokyo Research Laboratory.

Taiji’s team followed with MDGRAPE-3. On 19 June 2006 RIKEN, SGI Japan, and Intel announced that the system had reached a theoretical peak of one petaflops: 201 units of 24 MDGRAPE-3 chips (4,808 working chips, after 16 defective ones were set aside), attached to Intel Xeon servers. The press release compared it with the top machine on the TOP500 list, IBM’s BlueGene/L with a theoretical peak of 360 TFLOPS, and noted that a direct comparison was impossible because MDGRAPE-3 could not run Linpack. A calculation on it received a Gordon Bell honorable mention for peak performance at SC2006, and from April 2007 a 64 TFLOPS part of it served RIKEN’s researchers. The line continued: in November 2019 Taiji’s team announced MDGRAPE-4A, 512 chips that combined general-purpose RISC-V cores, networking, and the force pipelines on one die, for about 1.3 PFLOPS and a development cost of about 700 million yen.

GRAPE-DR and GRAPE-8

By 2010 Makino was at the National Astronomical Observatory, and he wrote down the problem. In 1990 the initial cost of a custom chip was around $100,000; by the end of the 1990s it was above $1 million; by 2010 it was around $10 million, too much for a chip with one narrow use. His answer, GRAPE-DR (“Greatly Reduced Array of Processor Elements with Data Reduction”, FY2004–2008), replaced the hardwired pipeline with 512 simple programmable processors on one chip, made by TSMC in a 90-nanometre process, so that it could also multiply dense matrices. A 64-board cluster solved a Linpack-type LU decomposition at 24 TFLOPS and 815 MFLOPS per watt, first on the Little Green500 list of June 2010.

GRAPE-8, which Makino at Tokyo Tech built with Hiroshi Daisaka of Hitotsubashi University and announced in March 2012, went the other way and cut the chip cost instead. It used an eASIC structured ASIC, on which only one wiring layer is custom, which Tokyo Tech said reduced development costs to a tenth or less. Each chip held 48 pipelines at 250 MHz for about 480 GFLOPS at 13 watts.

Dead End

The GRAPE line lost its advantage where it had been strongest. Graphics processors were also chips full of simple arithmetic units, and they were made in volume and sold cheaply (see The GPU Revolution). In 2009 the Gordon Bell prize for price-performance went to a group of Japanese researchers including Tsuyoshi Hamada, Keigo Nitadori, and Makoto Taiji, whose entry ran hierarchical N-body codes on 256 GPUs: a cluster that cost $228,912 and sustained 42 TFLOPS on 1.6 billion particles. In 2010 Makino wrote that whether a GRAPE-DR-style machine could compete with GPUs was “rather unclear”, “primarily because of the low production cost of GPGPUs”, and that the 1990s had been a good period for special-purpose machines because chip design was still within reach of small basic-science projects.

Makino’s later career followed the field. He moved to the Tokyo Institute of Technology in 2011, led a particle-simulation team at RIKEN’s K computer centre from 2012, and in 2014 became deputy project leader of RIKEN’s exascale project, which produced Fugaku. In 2012 he, Tomoaki Ishiyama, and Nitadori won the Gordon Bell Prize with a gravitational simulation of one trillion particles on the general-purpose K computer (see Japanese Supercomputers and Computenik). As a professor at Kobe University he worked with Preferred Networks on MN-Core, a deep-learning processor that the company co-developed with the university, and the MN-3 system built on it topped the Green500 energy-efficiency list in June 2020 at 21.11 GFLOPS per watt. The pipeline for one equation had become an array of simple processors for matrix arithmetic, which is also what a GPU is.

The special-purpose idea survived where a single calculation is worth a chip: RIKEN’s MDGRAPE-4A of 2019 still computes molecular forces in dedicated pipelines. For gravity, the astrophysicists moved to GPUs and general-purpose supercomputers, as the prizes of 2009 and 2012 show. For the architecture of the commodity clusters and accelerators that replaced such machines, see The Supercomputer Era; for the logic arrays that let small groups build their own hardware without a custom chip, see Ross Freeman and the FPGA.

📚 Sources