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

在GPU和多核CPU上求解批量线性规划

Solving Batched Linear Programs on GPU and Multicore CPU

Amit Gurung, Rajarshi Ray

摘要:

线性程序(LP)出现在大量应用程序中,将它们卸载到GPU可以提高性能。在GPU上卸载和求解LP的现有工作表明,从大尺寸LP(通常为500个约束、500个变量及以上)获得性能。为了从GPU获得性能的应用程序,涉及中小型LP,我们提出了批量解决大量的LP并行。在本文中,我们提出了我们的批处理LP求解器库的设计和CUDA实现,保持内存合并访问,减少CPU-GPU内存传输延迟和负载平衡的目标。批处理LP求解器的性能进行比较,在CPU中使用开源求解器GLPK(GNU线性编程工具包)顺序求解。三种类型的LP的性能进行评估。第一种类型是初始基本解为可行,第二种类型是初始基本解为不可行,第三种类型是可行域为超盒。对于第一种类型,当运行一批大小为$100$($100$变量,$100$约束)的$50k$ LP时,我们显示了$18.3\times$的最大加速比。对于第二种类型,使用一批大小为$200$的$10k$ LP获得$12\times$的最大加速比。对于第三种类型,我们显示出$63\times$在解决一批大小为5的近$4$百万LP时的显著加速,以及$34\times$在解决大小为$28$的6百万LP时的显著加速。此外,我们表明,开放源代码库求解线性规划-GLPK,可以很容易地扩展到解决多个LP并行多线程。线程并行GLPK实现在$12$核英特尔至强处理器上求解一批大小为$100$的$1e5$ LP时运行速度更快,$9.6\times$。我们展示了我们的批处理LP求解器在控制系统设计的数学模型的状态空间探索领域中的应用。

英文摘要:

Linear Programs (LPs) appear in a large number of applications and offloading them to the GPU is viable to gain performance. Existing work on offloading and solving an LP on GPU suggests that performance is gained from large sized LPs (typically 500 constraints, 500 variables and above). In order to gain performance from GPU for applications involving small to medium sized LPs, we propose batched solving of a large number of LPs in parallel. In this paper, we present the design and CUDA implementation of our batched LP solver library, keeping memory coalescent access, reduced CPU-GPU memory transfer latency and load balancing as the goals. The performance of the batched LP solver is compared against sequential solving in the CPU using an open source solver GLPK (GNU Linear Programming Kit). The performance is evaluated for three types of LPs. The first type is the initial basic solution as feasible, the second type is the initial basic solution as infeasible and the third type is the feasible region as a Hyperbox. For the first type, we show a maximum speedup of $18.3\times$ when running a batch of $50k$ LPs of size $100$ ($100$ variables, $100$ constraints). For the second type, a maximum speedup of $12\times$ is obtained with a batch of $10k$ LPs of size $200$. For the third type, we show a significant speedup of $63\times$ in solving a batch of nearly $4$ million LPs of size 5 and $34\times$ in solving 6 million LPs of size $28$. In addition, we show that the open source library for solving linear programs-GLPK, can be easily extended to solve many LPs in parallel with multi-threading. The thread parallel GLPK implementation runs $9.6\times$ faster in solving a batch of $1e5$ LPs of size $100$, on a $12$-core Intel Xeon processor. We demonstrate the application of our batched LP solver in the domain of state-space exploration of mathematical models of control systems design.

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

↑