计算机科学 > 程序设计语言
[提交于 2017年1月12日]
标题:Towards a Semantics-Aware Code Transformation Toolchain for Heterogeneous Systems
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Obtaining good performance when programming heterogeneous computing platforms poses significant challenges. We present a program transformation environment, implemented in Haskell, where architecture-agnostic scientific C code with semantic annotations is transformed into functionally equivalent code better suited for a given platform. The transformation steps are represented as rules that can be fired when certain syntactic and semantic conditions are fulfilled. These rules are not hard-wired into the rewriting engine: they are written in a C-like language and are automatically processed and incorporated into the rewriting engine. That makes it possible for end-users to add their own rules or to provide sets of rules that are adapted to certain specific domains or purposes.
提交历史
来自:EPTCS[v1] 2017年1月12日 星期四 12:04:30 UTC