异构CUDA-C的形式语义:模块化方法及其应用
Formal Semantics of Heterogeneous CUDA-C: A Modular Approach with Applications
摘要:
我们扩展了一个现成的,可执行的正式语义的C(埃里森和Rosu的K框架语义)与CUDA-C的核心功能。CUDA-C的混合CPU/GPU计算模型不仅对程序员提出了挑战,而且对形式方法的从业者也提出了挑战。我们的正式语义有助于揭示和澄清这些问题。我们证明了我们的语义生成一个工具,能够检测CUDA-C程序中的一些竞争条件和死锁的有用性。我们讨论了我们的模型的局限性,并认为它的可扩展性可以很容易地使更广泛的验证任务。
英文摘要:
We extend an off-the-shelf, executable formal semantics of C (Ellison and Rosu's K Framework semantics) with the core features of CUDA-C. The hybrid CPU/GPU computation model of CUDA-C presents challenges not just for programmers, but also for practitioners of formal methods. Our formal semantics helps expose and clarify these issues. We demonstrate the usefulness of our semantics by generating a tool from it capable of detecting some race conditions and deadlocks in CUDA-C programs. We discuss limitations of our model and argue that its extensibility can easily enable a wider range of verification tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。