Solving Batched Linear Programs on GPU and Multicore CPU
Amit Gurung, Rajarshi Ray
备注:
contains 31 pages in double line spacing, 11 figures with 2 tables. A preliminary work has been accepted in the 8th IEEE International Student Research Symposim on High Performance Computing, HiPC'2015, Bangalore, December 16-19, 2015. http://www.hipc.org/hipc2015/documents/HiPC-SRS-Paper/1570220654.pdf
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.
Load-Balancing for Improving User Responsiveness on Multicore Embedded Systems
大多数商用嵌入式设备都部署了单处理器架构。由于Google Play Store和Apple App Store等应用程序商业模式的出现,运行在嵌入式设备上的应用程序的代码大小和复杂性正在迅速增加。因此,高性能多核CPU已成为嵌入式市场以及个人计算机市场的主要趋势。由于这一趋势,许多设备制造商已经能够采用更具吸引力的用户界面和高性能应用程序,以在多核系统上获得更好的用户体验。在本文中,我们描述了如何提高实时性能,减少用户等待时间的多核系统,使用分区每CPU运行队列调度技术。而不是专注于天真的负载均衡计划,同样平衡的CPU使用率,我们的方法试图通过考虑运行任务的重要性水平,以最大限度地减少任务迁移的成本,并优化多核嵌入式系统的CPU利用率。因此,我们的方法提高了实时特性,如缓存效率,用户响应速度和延迟。在高背景压力下的实验结果表明,我们的方法减少了紧急任务的平均调度延迟的2.3倍。
B$^3$-PWL: GPU-Batched Branch-and-Bound for Piecewise-Linear Optimization with SOS2 Constraints
Johns Hopkins University(约翰斯·霍普金斯大学);University of North Carolina, Chapel Hill(北卡罗来纳大学教堂山分校);City University of Hong Kong(香港城市大学);The Hong Kong Institute of AI for Science(香港人工智能科学研究所)
Achieving Cloud-Grade SLOs for Local Mixture-of-Experts Inference through CPU-GPU Hybrid Design
Tsinghua University(清华大学);Xingyun Integrated Circuits Co., Ltd.(星云集成电路有限公司);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心)