arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2401.10834cs.DC
收藏

Cppless:C++中的单源高性能无服务器编程

Cppless: Single-Source and High-Performance Serverless Programming in C++

ETH Zurich(苏黎世联邦理工学院)

Marcin Copik, Lukas Möller, Alexandru Calotoiu, Torsten Hoefler

AI总结:

本文提出Cppless框架,基于LLVM和两个编译器扩展,实现C++应用向无服务器工作节点的单源高效卸载,实验表明仅需少量代码修改即可获得最高59倍加速。

摘要:

无服务器计算的兴起在云中引入了一类新的可扩展、弹性且广泛可用的并行工作节点。许多系统和应用受益于将计算和并行任务卸载到动态分配的资源上。然而,C++应用的开发者发现集成函数十分困难,原因包括部署复杂、客户端与云环境之间缺乏兼容性,以及输入输出数据类型松散。为了在C++中实现单源且高效的无服务器加速,我们引入了Cppless,这是一个用于实现远程函数的端到端框架,负责处理无服务器函数的创建、部署和调用。Cppless构建在LLVM之上,仅需两个编译器扩展即可自动提取C++函数对象并将其部署到云端。我们证明,将并行计算(例如从C++应用卸载到无服务器工作节点)可以在仅需少量代码修改的情况下,以最小的成本增加提供高达59倍的加速。

英文摘要:

The rise of serverless computing introduced a new class of scalable, elastic and widely available parallel workers in the cloud. Many systems and applications benefit from offloading computations and parallel tasks to dynamically allocated resources. However, the developers of C++ applications find it difficult to integrate functions due to complex deployment, lack of compatibility between client and cloud environments, and loosely typed input and output data. To enable single-source and efficient serverless acceleration in C++, we introduce Cppless, an end-to-end framework for implementing remote functions which handles the creation, deployment, and invocation of serverless functions. Cppless is built on top of LLVM and requires only two compiler extensions to automatically extract C++ function objects and deploy them to the cloud. We demonstrate that offloading parallel computations, such as from a C++ application to serverless workers, can provide up to 59x speedup with minimal cost increase while requiring only minor code modifications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑