计算机科学 > 程序设计语言
[提交于 2020年4月30日 (v1),最后修订于 2020年4月30日 (此版本, v2)]
标题:Predictable Accelerator Design with Time-Sensitive Affine Types
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Field-programmable gate arrays (FPGAs) provide an opportunity to co-design applications with hardware accelerators, yet they remain difficult to program. High-level synthesis (HLS) tools promise to raise the level of abstraction by compiling C or C++ to accelerator designs. Repurposing legacy software languages, however, requires complex heuristics to map imperative code onto hardware structures. We find that the black-box heuristics in HLS can be unpredictable: changing parameters in the program that should improve performance can counterintuitively yield slower and larger designs. This paper proposes a type system that restricts HLS to programs that can predictably compile to hardware accelerators. The key idea is to model consumable hardware resources with a time-sensitive affine type system that prevents simultaneous uses of the same hardware structure. We implement the type system in Dahlia, a language that compiles to HLS C++, and show that it can reduce the size of HLS parameter spaces while accepting Pareto-optimal designs.
提交历史
来自:Rachit Nigam[v2] 2020年4月30日 星期四 16:48:13 UTC