کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
524358 868623 2012 15 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Generating synchronization statements in divide-and-conquer programs
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نرم افزارهای علوم کامپیوتر
پیش نمایش صفحه اول مقاله
Generating synchronization statements in divide-and-conquer programs
چکیده انگلیسی

Divide-and-conquer is a well-known and important programming model that supports efficient execution of parallel applications on multi-cores, clusters, and grids. In divide-and-conquer systems such as Satin or Cilk, recursive calls are automatically transformed into jobs that execute asynchronously. Since the calls are non-blocking, consecutive calls are the source of parallelism. However, programmers have to manually enforce synchronization with sync statements that indicate where the system has to wait for the result of the asynchronous jobs.In this article, we investigate the feasibility of automatically inserting sync statements to relieve programmers of the burden of thinking about synchronization. We investigate whether correctness can be guaranteed and to what extent the amount of parallelism is reduced. We discuss the code analysis algorithms that are needed in detail.To evaluate our approach, we have extended the Satin divide-and-conquer system, which targets efficient execution on grids, with a sync generator. Our experiments show that, with our analysis, we can automatically generate synchronization statements in virtually all real-life cases: in 31 out of 35 real-world applications the sync statements are placed optimally. The automatic placement is correct in all cases, and in one case the sync generator corrected synchronization errors in an application (FFT).


► Our implementation generates sync statements automatically in d&c programs.
► We offer a good understanding of the problems involved in generating sync statements.
► All 35 real-world applications have correct sync placement.
► 31 out of 35 real-world applications have optimal sync placement.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Parallel Computing - Volume 38, Issues 1–2, January–February 2012, Pages 75–89
نویسندگان
, , , ,