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

VLCs: 使用虚拟化库管理并行性

VLCs: Managing Parallelism with Virtualized Libraries

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Texas State University(德克萨斯州立大学);Microsoft(微软)
Yineng Yan, William Ruys, Hochan Lee, Ian Henriksen, Arthur Peters, Sean Stephens, Bozhi You, Henrique Fingler, Martin Burtscher, Milos Gligoric, Keshav Pingali… 展开作者

Yineng Yan, William Ruys, Hochan Lee, Ian Henriksen, Arthur Peters, Sean Stephens, Bozhi You, Henrique Fingler, Martin Burtscher, Milos Gligoric, Keshav Pingali, Mattan Erez, George Biros, Christopher J. Rossbach

AI总结:

提出虚拟库上下文(VLCs)作为进程子单元,封装库和资源分配,无需修改库代码即可控制资源利用,防止竞争并支持并行执行,实验显示加速比可达2.85倍。

摘要:

随着现代并行机器的复杂性和规模不断增长,程序员越来越依赖软件库的组合来封装和利用并行性。然而,许多库在设计时并未考虑组合,并假设它们对所有资源具有独占访问权。并发使用此类库可能导致竞争和性能下降。先前的解决方案涉及修改库或操作系统,这通常是不可行的。我们提出了虚拟库上下文(VLCs),它是封装库集合和相关资源分配的进程子单元。VLCs无需修改库代码即可控制这些库的资源利用率。这使得用户能够在库之间划分资源以防止竞争,或者加载同一库的多个副本以允许在同一进程内并行执行原本线程不安全的代码。在本文中,我们描述并评估了VLCs的C++和Python原型。实验表明,在包括使用OpenMP、OpenBLAS和LibTorch的应用程序的基准测试中,VLCs可实现高达2.85倍的加速。VLCs的源代码可在https://github.com/pecos/Virtual-Library-Context获取。

英文摘要:

As the complexity and scale of modern parallel machines continue to grow, programmers increasingly rely on composition of software libraries to encapsulate and exploit parallelism. However, many libraries are not designed with composition in mind and assume they have exclusive access to all resources. Using such libraries concurrently can result in contention and degraded performance. Prior solutions involve modifying the libraries or the OS, which is often infeasible. We propose Virtual Library Contexts (VLCs), which are process subunits that encapsulate sets of libraries and associated resource allocations. VLCs control the resource utilization of these libraries without modifying library code. This enables the user to partition resources between libraries to prevent contention, or load multiple copies of the same library to allow parallel execution of otherwise thread-unsafe code within the same process. In this paper, we describe and evaluate C++ and Python prototypes of VLCs. Experiments show VLCs enable a speedup up to 2.85x on benchmarks including applications using OpenMP, OpenBLAS, and LibTorch. Source code of VLCs is available at https://github.com/pecos/Virtual-Library-Context.

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

↑