arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.08404cs.SE
收藏

用应答集编程求解HPC依赖问题

Using Answer Set Programming for HPC Dependency Solving

Todd Gamblin, Massimiliano Culpo, Gregory Becker, Sergei Shudler

摘要:

现代科学软件栈已经变得非常复杂,使用许多编程模型和库来利用越来越多的GPU和加速器。包管理器可以使用依赖解决器来减轻这种复杂性,但它们正在达到极限。找到兼容的依赖版本是NP完全的,并且对包兼容性的语义建模模构建时选项、GPU运行时、标志和其他参数是极其困难的。在这个巨大的配置空间中,定义一个“好”的配置是令人生畏的。我们解决这个问题,使用答案集编程(ASP),组合搜索问题的声明模型。我们表明,使用Spack包管理器,ASP程序可以简洁地表达HPC软件栈的兼容性规则,并提供强有力的解决方案的质量保证。使用ASP,我们可以将新的构建与预安装的二进制文件混合在一起,即使在考虑成千上万的软件包时,求解器的性能也是可以接受的。

英文摘要:

Modern scientific software stacks have become extremely complex, using many programming models and libraries to exploit a growing variety of GPUs and accelerators. Package managers can mitigate this complexity using dependency solvers, but they are reaching their limits. Finding compatible dependency versions is NP-complete, and modeling the semantics of package compatibility modulo build-time options, GPU runtimes, flags, and other parameters is extremely difficult. Within this enormous configuration space, defining a "good" configuration is daunting. We tackle this problem using Answer Set Programming (ASP), a declarative model for combinatorial search problems. We show, using the Spack package manager, that ASP programs can concisely express the compatibility rules of HPC software stacks and provide strong quality-of-solution guarantees. Using ASP, we can mix new builds with preinstalled binaries, and solver performance is acceptable even when considering tens of thousands of packages.

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

↑