loading...
 This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
1997 Advances in Parallel and Distributed Computing Conference (APDC '97)
Efficient Implementation of Portable C*-like Data-Parallel Library in C++
Shanghai, CHINA
March 19-March 21
ISBN: 0-8186-7876-3
Motohiko Matsuda, Real World Computing Partnership
Mitsuhisa Sato, Real World Computing Partnership
Yutaka Ishikawa, Real World Computing Partnership
The C* language is a data-parallel extension of the C language which incorporates parallel data types. Since the C++ language provides operator overloading, a C++ library can implement the C* parallel extensions with a similar syntax. Although library implementations are highly portable, some overheads make them impractical. The two major overheads incurred are temporaries in each operator application, and the inability to detect regular communication patterns. The C++ overloading mechanism forces a temporary for each operator application. Also, regular communications in C* are syntactically indistinguishable from general point-to-point communications. We tackled these problems extensively in a library. The template mechanism, a type parameterization in C++, is used to eliminate temporaries by delaying operator application and evaluating the entire expression at once. The polymorphic type dispatch mechanism is used to detect regular communications by assigning particular types to potentially regular communications. We have implemented the library on the CM-5, and compared its performance with the C* compiler using three simple examples. The techniques presented offers improved performance comparable to the C* compiler, which is close or 1.5 times slower in two examples, and even faster in one example.
Index Terms:
C*, C++ template library, data-parallel, elimination of temporaries
Citation:
Motohiko Matsuda, Mitsuhisa Sato, Yutaka Ishikawa, "Efficient Implementation of Portable C*-like Data-Parallel Library in C++," apdc, pp.398, 1997 Advances in Parallel and Distributed Computing Conference (APDC '97), 1997
Usage of this product signifies your acceptance of the Terms of Use.