Skip to main content

2004 | OriginalPaper | Buchkapitel

Semantic-Driven Parallelization of Loops Operating on User-Defined Containers

verfasst von : Dan Quinlan, Markus Schordan, Qing Yi, Bronis R. de Supinski

Erschienen in: Languages and Compilers for Parallel Computing

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

We describe ROSE, a C++ infrastructure for source-to-source translation, that provides an interface for programmers to easily write their own translators for optimizing the use of high-level abstractions. Utilizing the semantics of these high-level abstractions, we demonstrate the automatic parallelization of loops that iterate over user-defined containers that have interfaces similar to the lists, vectors and sets in the Standard Template Library (STL). The parallelization is realized in two phases. First, we insert OpenMP directives into a serial program, driven by the recognition of the high-level abstractions, containers, that are thread-safe. Then, we translate the OpenMP directives into library routines that explicitly create and manage parallelism. By providing an interface for the programmer to classify the semantics of their abstractions, we are able to automatically parallelize operations on containers, such as linked-lists, without resorting to complex loop dependence analysis techniques. Our approach is consistent with general goals within telescoping languages.

Metadaten
Titel
Semantic-Driven Parallelization of Loops Operating on User-Defined Containers
verfasst von
Dan Quinlan
Markus Schordan
Qing Yi
Bronis R. de Supinski
Copyright-Jahr
2004
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-540-24644-2_34

Premium Partner