arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.22092cs.DC
收藏

FlashSpread:通过内核融合实现基于IO的GPU非马尔可夫流行病动态模拟

FlashSpread: IO-Aware GPU Simulation of Non-Markovian Epidemic Dynamics via Kernel Fusion

School of Data Science, University of Virginia(弗吉尼亚大学数据科学学院);Department of Mathematics & Statistics, James Madison University(詹姆斯麦迪逊大学数学与统计系);Ohio University(俄亥俄大学)

Heman Shakeri, Behnaz Moradi-Jamei, Aram Vajdi, Ehsan Ardjmand

AI总结:

本文提出FlashSpread框架,通过融合内核实现高效模拟非马尔可夫流行病动态,利用GPU加速在大规模接触网络上实现高吞吐量,验证结果表明其在流行病学参数不确定性范围内具有较高的准确性。

摘要:

非马尔可夫(再生)流行病模拟在多百万节点接触网络上至关重要,对于一般年龄依赖的持有时间分布(对数正态、Weibull、Erlang等)的现实预测是必要的,但年龄依赖的危险迫使密集的每步更新,使得标准CPU方法的稀疏事件队列策略失效。我们提出了FlashSpread,一个GPU框架,将每步再生流水线(CSR遍历、数值稳定的erfcx基危险评估、伯努利tau-leaping、状态转移、下一步感染性写回)整合到单一融合的Triton内核中,其中间产物从不离开流式多处理器寄存器,具有块标量跳过以保持CUDA Graph捕获和度感知的CSR调度(线程/ warp/边合并)以保持无标度图的峰值吞吐量。在NVIDIA A100上,融合的CUDA-Graph引擎在N=10^6的均匀度图上达到8.09 Giga-NUPS,比优化的CPU tau-leaping在相同N上快217倍;在相同大小的Barabasi-Albert图上,合并调度恢复了4.5倍(0.45到2.0 Giga-NUPS)超过默认内核,且框架可扩展到单个A100(40 GB)上的N=10^8,混合精度存储路径将L2可达规模扩展约3倍,并在远带宽限制端提供1.15倍的吞吐量提升。与精确的非马尔可夫Gillespie参考验证显示,峰值感染和最终攻击率的结构偏差约为6%和7%,在epsilon接近0的两个数量级容忍度范围内不会显著减少,这在典型的流行病学参数不确定性范围内是可接受的。代码:https://github.com/Shakeri-Lab/FlashSpread。

英文摘要:

Non-Markovian (renewal) epidemic simulation on multi-million-node contact networks is essential for realistic forecasting under general age-dependent holding-time distributions (log-normal, Weibull, Erlang, and similar), but the age-dependent hazard forces dense per-step updates that render the sparse event-queue strategies of standard CPU methods ineffective. We present FlashSpread, a GPU framework that consolidates the per-step renewal pipeline (CSR traversal, numerically stable erfcx-based hazard evaluation, Bernoulli tau-leaping, state transition, and next-step infectivity write-back) into a single fused Triton kernel whose intermediates never leave streaming-multiprocessor registers, with block-scalar skips that preserve CUDA Graph capture and a degree-aware CSR dispatch (thread / warp / edge-merge) that keeps the peak throughput on scale-free graphs. On an NVIDIA A100 the fused CUDA-Graph engine reaches 8.09 Giga-NUPS at N = 10^6 on a uniform-degree graph, a 217x strict hardware speedup over optimised CPU tau-leaping at the same N; on a Barabasi-Albert graph of the same size the merge-based dispatch recovers 4.5x (0.45 to 2.0 Giga-NUPS) over the default kernel, and the framework scales to N = 10^8 on a single A100 (40 GB), with a mixed-precision storage path that extends the L2-reachable scale by roughly 3x and delivers a 1.15x throughput lift at the far bandwidth-bound end. Validation against an exact non-Markovian Gillespie reference shows a structural-bias floor of approximately 6% on peak infection and approximately 7% on final attack rate that does not detectably decrease as epsilon nears 0 across two decades of tolerance, comfortably within typical epidemiological parameter uncertainty. Code: https://github.com/Shakeri-Lab/FlashSpread.

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

↑