计算机科学 > 程序设计语言
[提交于 2020年12月31日 (v1),最后修订于 2021年8月22日 (此版本, v2)]
标题:Automatic Synthesis of Parallel Unix Commands and Pipelines with KumQuat
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present KumQuat, a system for automatically generating data parallel implementations of Unix shell commands and pipelines. The generated parallel versions split input streams, execute multiple instantiations of the original pipeline commands to process the splits in parallel, then combine the resulting parallel outputs to produce the final output stream. KumQuat automatically synthesizes the combine operators, with a domain-specific combiner language acting as a strong regularizer that promotes efficient inference of correct combiners. We evaluate KumQuat on 70 benchmark scripts that together have a total of 427 stages. KumQuat synthesizes a correct combiner for 113 of the 121 unique commands that appear in these benchmark scripts. The synthesis times vary between 39 seconds and 331 seconds with a median of 60 seconds. We present experimental results that show that these combiners enable the effective parallelization of our benchmark scripts.