Title :
Implementing declarative parallel bottom-avoiding choice
Author :
Du Bois, Andre Rauber ; Pointon, Robert ; Loidl, Hans-Wolfgang ; Trinder, Phil
Author_Institution :
Dept. of Comput. & Electr. Eng., Heriot-Watt Univ., UK
Abstract :
Non-deterministic choice supports efficient parallel speculation, but unrestricted non-determinism destroys the referential transparency of purely-declarative languages by removing unfoldability and it bears the danger of wasting resources on unnecessary computations. While numerous choice mechanisms have been proposed that preserve unfoldability, and some concurrent implementations exist, we believe that no compiled parallel implementation has previously been constructed This paper presents the design, semantics, implementation and use of a family of bottom-avoiding choice operators for Glasgow parallel Haskell. The subtle semantic properties of our choice operations are described, including a careful classification using an existing framework, together with a discussion of operational semantics issues and the pragmatics of distributed memory implementation. The expressiveness of our choice operators is demonstrated by constructing a branch and bound search, a merge and a speculative conditional. Their effectiveness is demonstrated by comparing the parallel performance of the speculative search with naive and ´perfect´ implementations. Their efficiency is assessed by measuring runtime overhead and heap consumption.
Keywords :
functional programming; parallel programming; programming language semantics; tree searching; Glasgow parallel Haskell; branch and bound search; compiled parallel implementation; declarative parallel bottom-avoiding choice; distributed memory implementation; heap consumption; operational semantics; parallel speculation; purely-declarative languages; referential transparency; runtime overhead; Computer architecture; Concurrent computing; Control systems; Data structures; High performance computing; Neodymium; Proposals; Runtime; Skeleton; Yarn;
Conference_Titel :
Computer Architecture and High Performance Computing, 2002. Proceedings. 14th Symposium on
Print_ISBN :
0-7695-1772-2
DOI :
10.1109/CAHPC.2002.1180763