Japanese Dataflow Machines
Abstract
In a dataflow computer an instruction runs as soon as its operands arrive, not when a program counter reaches it, so every bit of parallelism in a program is available to the hardware without the programmer marking it. In the 1980s the Electrotechnical Laboratory (ETL) of the Ministry of International Trade and Industry built SIGMA-1, a 128-processor dataflow supercomputer that ran by 1988 and slightly outran a CRAY-1 on matrix work, and then the EM-4, whose single-chip processor of 1989 merged dataflow with an ordinary pipeline. NTT’s laboratories built DFM for parallel list processing, and NEC presented a dataflow chip for image processing, the μPD7281, in 1984. None of these became a product line for general computing. The SIGMA-1 team’s own conclusion was that pure dataflow released too much parallelism to manage, and the machines that came after it put sequential execution back in. Dataflow scheduling survived inside the out-of-order processors that replaced them.
The Idea
A conventional processor fetches one instruction after another from memory. A dataflow machine holds the program as a graph: each node is an operation, each arc carries a value, and a node “fires” when values are present on all its input arcs. Two operations that do not depend on each other can run at the same moment, and nobody has to say so. Jack Dennis and David Misunas of MIT described a processor of this kind in 1975. Arvind’s group at MIT and John Gurd and Ian Watson at Manchester built and simulated tagged-token machines, in which each value carries a label naming the activation it belongs to, so that the iterations of a loop or the calls of a function can be in flight at once; the Manchester prototype was described in Communications of the ACM in January 1985.
Kei Hiraki, who joined ETL in 1982, later described why the idea looked so attractive in Japan at that moment. Mainframe and vector-computer clock rates had reached about 100 MHz, and further speed seemed to require parallel processing. Apart from SIMD machines, the parallel computers completed until then, among them ILLIAC IV, C.mmp, Cm*, and HEP, were small or needed special programming, and automatic parallelization by compilers was, in his words, a distant dream. A dataflow computer found the parallelism by itself, and since communication between processors was part of its execution model, it seemed the natural basis for systems of hundreds or thousands of processors.
SIGMA-1
ETL’s computer architecture section was working mainly on dataflow when Hiraki arrived. SIGMA-1 was its attempt to show that a dataflow machine could be the fastest computer for scientific work. It was part of the MITI national project “Research on High-Speed Computing Systems for Science and Engineering,” the supercomputer project of the 1980s (see Japanese Supercomputers and Computenik). Construction began in 1983, a single-processor prototype ran in 1984, and the full system of 128 processing elements (PE) and 128 structure elements (SE), with the processor built as LSI chips, was running in 1988. The IPSJ Computer Museum dates the successful development to 1987. The team was Toshitsugu Yuba, Toshio Shimada, Kenji Nishida, Satoshi Sekiguchi, and Hiraki; the hardware was manufactured by Chuo Denshi.
SIGMA-1 followed the dynamic, tagged-token model and worked at the level of single machine instructions. Each PE matched incoming tokens in a hashing unit built in hardware and then fetched and executed the instruction that had fired; each SE managed data structures with two-bit tags, an extension of the “I-structure” of the MIT group. Local crossbar switches and a two-stage omega network joined the 256 elements. Programs were written in DFC, a single-assignment subset of C, and DFC II, which added structures and relaxed the single-assignment rule; the compiler turned the source into a dataflow graph and spread its nodes across the processors.
The machine ran at a 100 ns clock. The IPSJ gives its peak as 427 MFLOPS and 640 MIPS, and 170 MFLOPS and 200 MIPS in initial experiments. Hiraki’s own account, written in 2002, gives 117 MFLOPS on matrix computation with all 128 PEs, which he says was slightly faster than a CRAY-1. Apart from the ban on global variables, he wrote, numerical programs could be written fairly naturally, and running them in parallel on 128 PEs turned out to be almost anticlimactically easy. The single processor did less well than the peak suggested: pipeline bubbles that depended on the order in which input packets arrived held each PE to about 2.5 MIPS on average against a peak of 5, and the same program never ran in quite the same time twice, because the order of execution was decided by the order in which data arrived.
EM-4 and the Single-Chip Processor
The EM-4, designed and built at ETL from 1986 to 1990 by a team under Shuichi Sakai and Yuetsu Kodama, started from what SIGMA-1 had taught. Its name stood for ETL Machine 4; Sakai noted that it took over the “EM” name of earlier ETL experimental machines but had little technical relation to them and was really SIGMA-1’s successor. The computation model, which Sakai called the strongly connected arc model, marked out pieces of the dataflow graph that would run as continuous sequences of instructions. That let the machine use locality and made resource management easier.
The central part was the EMC-R, a processor chip that combined communication, synchronization, and a RISC-style pipeline at the level of the instruction pipeline. It was built on a 50,000-gate array from LSI Logic, the largest the team could get, and was described at the International Symposium on Computer Architecture in 1989 as a dataflow single-chip processor. Because the chip was kept simple, the 80-processor prototype, about the size of a household refrigerator, was running less than six months after the first sample chips arrived. Full operation began in April 1990. Against a CRAY X-MP and a Sun Sparc-330 on a set of benchmarks it ran up to 21 and 94 times faster respectively; a C compiler by Mitsuhisa Sato followed in 1991. The goal was a practical general-purpose machine of about 1,000 processors; the prototype had 80.
Sakai wrote that the EM-4 ran stably for nearly ten years and influenced later multithreaded designs, among them MIT’s *T. Its direct successors were the EM-X at ETL, which ran with 80 processors and added priority handling and faster floating point, and the RWC-1 of the Real World Computing program, which ran with 128 processors and merged communication and synchronization into a superscalar pipeline.
NTT’s DFM and NEC’s ImPP
At NTT’s Electrical Communication Laboratories in Musashino, Makoto Amamiya, Ryuzo Hasegawa, Hirohide Mikami, and colleagues designed a dataflow machine for symbolic rather than numerical work. Their DFM was presented at the National Computer Conference in 1982 as a list-processing-oriented dataflow architecture. Its “lenient cons” let a list be used before all its parts had been computed. A 1986 paper reported that a prototype had been implemented and that simulations at the register-transfer level showed a single DFM processor about five times faster than conventional machines of the same device technology, while several processors together reached a near-linear speed-up ratio of 0.6 to 0.9. Amamiya left NTT in 1988 for a professorship at Kyushu University.
A dataflow chip did reach the market. In 1984 NEC presented the μPD7281 Image Pipelined Processor (ImPP) at the International Solid-State Circuits Conference. It put 115,000 transistors on a die of 6.93 by 6.99 mm in 1.75 μm NMOS and executed 32 kinds of instruction, including a 16 by 16 bit multiplication, in 200 ns each. Data circulated through a ring-shaped pipeline of variable length and triggered the instructions that needed it, and several chips could be chained for more throughput. The Semiconductor History Museum of Japan credits it with 10 to 20 times the performance of the 8086 on image work and says it was used in products for seal-stamp and fingerprint verification.
Moto-oka and the Fifth Generation
Dataflow was in the background of the Fifth Generation Computer Project from the start. Its organizer, Tohru Moto-oka of the University of Tokyo, had built TOPSTAR, a function-level dataflow machine that used dataflow to distribute jobs, and his laboratory later built the GRACE database machine and the PIE parallel inference engine. Hiraki noted that ICOT was founded in 1982, the same year he joined ETL’s dataflow group. ICOT’s own machines were built for logic programming rather than dataflow (see Japanese Lisp Machines for the other symbolic-processing machines of the period).
Dead End
Hiraki drew the lesson in 2002. SIGMA-1 had shown that a dataflow computer could be fast and that fine-grained dataflow parallelized programs well. But years of programming it had shown that the main obstacle to a practical system was controlling parallelism and managing resources. A program had to release, in an orderly fashion, only as much parallelism as kept all processors busy, and the firing of ready instructions needed scheduling on top of data dependence. Dataflow and control-driven sequential execution, he concluded, were not opposed but had to cooperate. The EM-4 and EM-X were built on that conclusion, and the hybrid designs of the early 1990s, in Japan and at MIT, ran threads of ordinary sequential code between dataflow synchronizations. The ETL machines remained research prototypes.
The fine-grained part of the idea went into a different kind of machine. In 1985 Yale Patt, Wen-mei Hwu, and Michael Shebanow at Berkeley proposed HPS, a microarchitecture whose execution model they called “a restriction on fine granularity data flow”: only a small window of the instruction stream was turned into a dataflow graph inside the processor at any one time, and the program itself stayed sequential. Robert Tomasulo at IBM had published an algorithm for keeping several arithmetic units busy in 1967. Out-of-order processors, such as Intel’s Pentium Pro of 1995, found the parallelism in ordinary sequential code without asking programmers to change languages (see RISC vs. CISC and Von Neumann Architecture). For the other parallel bets of the period, see Concurrency and Parallelism and Dead End: ILLIAC IV.
📚 Sources
- Jack B. Dennis and David P. Misunas: “A preliminary architecture for a basic data-flow processor,” Proceedings of the 2nd Annual Symposium on Computer Architecture (ISCA ‘75), 1975, pp. 126–132, doi:10.1145/642089.642111
- J. R. Gurd, C. C. Kirkham, and I. Watson: “The Manchester prototype dataflow computer,” Communications of the ACM 28(1), January 1985, pp. 34–52, doi:10.1145/2465.2468
- Arvind and R. S. Nikhil: “Executing a program on the MIT tagged-token dataflow architecture,” IEEE Transactions on Computers 39(3), 1990, pp. 300–318, doi:10.1109/12.48862
- 平木敬 (Hiraki Kei): 「データフロースーパーコンピュータSIGMA-1」 (“The SIGMA-1 dataflow supercomputer”), 情報処理 (IPSJ Magazine) 43(2), February 2002, via the IPSJ Computer Museum (arrival at ETL in 1982, the 100 MHz background and the earlier parallel machines, construction from 1983, the one-processor prototype in 1984, the 128-processor system running in 1988, tagged-token model, matching by hashing, SE as extended I-structure, crossbar and omega network, 5 MIPS peak and about 2.5 MIPS average per PE, DFC and DFC II, 117 MFLOPS on matrix computation and the CRAY-1 comparison, the lesson on parallelism control and resource management, the team, and Chuo Denshi)
- IPSJ Computer Museum: “Development of the SIGMA-1 Data Driven Computer” and Japanese version (1987, the MITI supercomputer project, 100 ns clock, 427 MFLOPS and 640 MIPS peak, 128 PEs and 128 SEs, 170 MFLOPS and 200 MIPS in initial experiments, DFC and DFC II)
- Toshio Shimada, Kei Hiraki, Kenji Nishida, and Satoshi Sekiguchi: “Evaluation of a prototype data flow processor of the SIGMA-1 for scientific computations,” Proceedings of the 13th Annual International Symposium on Computer Architecture, 1986, pp. 226–234, doi:10.1145/17356.17383 (ETL affiliation, the operational PE and SE)
- Toshitsugu Yuba, Toshio Shimada, Yoshinori Yamaguchi, Kei Hiraki, and Shuichi Sakai: “Dataflow computer development in Japan,” Proceedings of the 4th International Conference on Supercomputing, June 1990, pp. 140–147, doi:10.1145/77726.255151
- 坂井修一 (Sakai Shuichi): 「データフロー並列計算機EM-4」 (“The EM-4 dataflow parallel computer”), 情報処理 (IPSJ Magazine) 43(2), February 2002, via the IPSJ Computer Museum (1986–1990, the EM name, the strongly connected arc model, the EMC-R on a 50,000-gate LSI Logic array, the refrigerator-sized 80-processor prototype within six months of the first chips, full operation in April 1990, 21 times the CRAY X-MP and 94 times the Sun SPARCstation 330, Sato’s C compiler of 1991, nearly ten years of operation, influence on MIT’s *T, EM-X with 80 and RWC-1 with 128 processors)
- IPSJ Computer Museum: “EM-4 Data Flow Machine” (Sakai and Kodama, 1986–1990, 1,024-processor design target, 1 GIPS, hybrid architecture, EM-X and RWC-1)
- S. Sakai, Y. Yamaguchi, K. Hiraki, Y. Kodama, and T. Yuba: “An architecture of a dataflow single chip processor,” Proceedings of the 16th Annual International Symposium on Computer Architecture (ISCA ‘89), 1989, pp. 46–53, doi:10.1145/74925.74931
- S. Sakai, Y. Kodama, and Y. Yamaguchi: “Prototype implementation of a highly parallel dataflow machine EM-4,” Proceedings of the Fifth International Parallel Processing Symposium, 1991, pp. 278–286, doi:10.1109/IPPS.1991.153792
- Mitsuhisa Sato, Yuetsu Kodama, Shuichi Sakai, Yoshinori Yamaguchi, and Yasuhito Koumura: “Thread-based programming for the EM-4 hybrid dataflow machine,” ISCA ‘92, pp. 146–155, doi:10.1145/139669.139712
- Yuetsu Kodama et al.: “The EM-X parallel computer: architecture and basic performance,” ISCA ‘95, pp. 14–23, doi:10.1145/223982.223987
- R. S. Nikhil, G. M. Papadopoulos, and Arvind: “*T: A multithreaded massively parallel architecture,” ISCA ‘92, pp. 156–167, doi:10.1109/ISCA.1992.753313
- Makoto Amamiya, Ryuzo Hasegawa, Osamu Nakamura, and Hirohide Mikami: “A list-processing-oriented data flow machine architecture,” AFIPS ‘82 National Computer Conference, 1982, p. 143, doi:10.1145/1500774.1500792
- M. Amamiya, M. Takesue, R. Hasegawa, and H. Mikami: “Implementation and evaluation of a list-processing-oriented data flow machine,” Proceedings of the 13th Annual International Symposium on Computer Architecture, 1986, pp. 10–19, doi:10.1145/17356.17358 (affiliation with NTT’s Electrical Communications Laboratories in Musashino; abstract: lenient cons, prototype, register-transfer-level simulation, five times faster, speed-up ratio 0.6–0.9)
- 雨宮真人 (Amamiya Makoto), Japanese Wikipedia (finding aid: joined the Nippon Telegraph and Telephone Public Corporation in 1969, professor at Kyushu University from 1988)
- Semiconductor History Museum of Japan: “1984: The ImPP, a non-von Neumann data-driven processor (NEC)” (μPD7281, 115,000 transistors, 6.93 × 6.99 mm, 1.75 μm NMOS, 32 instructions in 200 ns, ring pipeline, cascading, 10–20 times the 8086, ISSCC, seal-stamp and fingerprint verification)
- T. Temma, M. Iwashita, K. Matsumoto, H. Kurokawa, and T. Nukiyama: “Data flow processor chip for image processing,” IEEE Transactions on Electron Devices 32(9), 1985, pp. 1784–1791, doi:10.1109/T-ED.1985.22198
- IPSJ Computer Museum: “Moto-Oka Tohru” (TOPSTAR as a function-level dataflow machine, GRACE, PIE, the 1978 Fifth Generation committee)
- Yale N. Patt, Wen-mei Hwu, and Michael Shebanow: “HPS, a new microarchitecture: rationale and introduction,” Proceedings of the 18th Annual Workshop on Microprogramming, December 1985, pp. 103–108, doi:10.1145/18927.18916, reprint (abstract: “a restriction on fine granularity data flow”; section 1.1 on the active window)
- D. B. Papworth: “Tuning the Pentium Pro microarchitecture,” IEEE Micro 16(2), April 1996, pp. 8–15, doi:10.1109/40.491458 (the Pentium Pro’s out-of-order core)
- R. M. Tomasulo: “An efficient algorithm for exploiting multiple arithmetic units,” IBM Journal of Research and Development 11(1), January 1967, pp. 25–33, doi:10.1147/rd.111.0025