SWORD: A PROGRAMMING LANGUAGE WITH COMPILER-CHECKED REPRODUCIBLE PARALLELISM
Main Article Content
Abstract
Parallel floating-point sums often change their result with the number of threads and with the machine. This work presents Sword, a compiled programming language whose compiler detects data races and checks that the result of functions marked det depends only on their arguments. The guarantee was evaluated against C with OpenMP on five platforms, using a sum of ten million values, a Monte Carlo simulation and elementary functions. Over 40 runs of the sum, C produced 13 different results and Sword produced one. Sword’s plain sum cost the same as C’s; its exact sum cost about nine times more on the hardest data.
Downloads
Download data is not yet available.
Article Details
Section
Artigos

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.