Skip to main content
QUICK REVIEW

[Paper Review] Checking Race Freedom of Clocked X10 Programs

Tomofumi Yuki, Paul Feautrier|arXiv (Cornell University)|Nov 18, 2013
Parallel Computing and Optimization TechniquesComputer Science13 references5 citations
TL;DR

This paper presents a static analysis method to guarantee race freedom in polyhedral X10 programs that use clocks—dynamic synchronization constructs similar to barriers but with runtime-dynamic participant sets. By extending the happens-before relation to account for synchronization counts via polyhedral counting and using SMT solvers to disprove potential races, the approach provides compile-time race-free guarantees despite the undecidability of the general problem.

ABSTRACT

One of many approaches to better take advantage of parallelism, which has now become mainstream, is the introduction of parallel programming languages. However, parallelism is by nature non-deterministic, and not all parallel bugs can be avoided by language design. This paper proposes a method for guaranteeing absence of data races in the polyhedral subset of clocked X10 programs. Clocks in X10 are similar to barriers, but are more dynamic; the subset of processes that participate in the synchronization can dynamically change at runtime. We construct the happens-before relation for clocked X10 programs, and show that the problem of race detection is undecidable. However, in many practical cases, modern tools are able to find solutions or disprove their existence. We present a set of benchmarks for which the analysis is possible and has an acceptable running time.

Motivation & Objective

  • To provide static, compile-time guarantees of race freedom in X10 programs that use clocks, which are more dynamic than traditional barriers.
  • To address the challenge that existing static analyses for MPI-style barriers do not apply to X10's dynamic clock semantics.
  • To extend prior polyhedral race detection techniques to include X10's core constructs: async, finish, and clocks.
  • To formalize the happens-before relation in the presence of clocks using integer point counting in polyhedra.
  • To demonstrate feasibility through a prototype and a benchmark suite, showing acceptable performance on practical cases.

Proposed method

  • Extends the operational semantics of X10 to formally define the happens-before relation under clocks, where synchronization counts per process are tracked over execution traces.
  • Models the number of synchronizations a process has performed at a given statement instance as counting integer points in a union of polyhedra.
  • Represents the race condition as a constraint satisfaction problem, where potential conflicting accesses must be disproven via SMT solving.
  • Uses advanced SMT solvers (e.g., Z3) to disprove the existence of races, since integer linear programming is insufficient due to polynomial expressions in synchronization counts.
  • Implements a prototype tool that processes X10 programs, performs polyhedral analysis, and applies SMT-based verification.
  • Integrates with prior work on at and places in X10 to support full-featured static analysis of core constructs.

Experimental results

Research questions

  • RQ1Can the happens-before relation be formally extended to include X10's dynamic clocks, where participating processes can change at runtime?
  • RQ2Is data race detection decidable for clocked X10 programs within the polyhedral model?
  • RQ3How can the synchronization count dynamics of clocks be modeled mathematically to support static analysis?
  • RQ4Can SMT solvers effectively disprove the existence of data races in the presence of polynomial synchronization counts?
  • RQ5To what extent can the proposed method scale on practical X10 benchmarks with complex clock usage?

Key findings

  • The problem of data race detection in clocked X10 programs is undecidable in general due to the emergence of polynomial expressions in synchronization counts.
  • Despite undecidability, the method successfully proves race freedom for all benchmark programs, with Z3 disproving potential races efficiently in all cases except MOLDYN.
  • The analysis is instance-wise and element-wise, distinguishing statement instances and array elements to reduce false positives.
  • The prototype implementation successfully handles all core X10 constructs—async, finish, and clocks—within the polyhedral model.
  • The approach is scalable on practical benchmarks, with synchronization counting overhead being minimal except in the largest case (MOLDYN).
  • The method can be extended to other languages with similar synchronization semantics, such as Habanero-Java, and complements existing work on places and atomic blocks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.