Introduction
Traffic micro-simulation—the process of modeling the behavior of every individual vehicle within a network—is a cornerstone of modern urban planning and the development of autonomous vehicle systems. However, the computational intensity required to simulate regional-scale networks often forces a compromise between detail and scale. Traditional CPU-bound frameworks struggle to process more than a few major road segments simultaneously, creating a bottleneck for planners who need to understand city-wide dynamics.
LPSim addresses this challenge by leveraging the massive parallelism of multi-GPU architectures. While GPUs offer high throughput, they introduce specific hurdles in traffic modeling: memory constraints (fitting millions of vehicles and nodes into VRAM) and the complexity of vehicle movement across processor boundaries. LPSim overcomes these through innovative memory mapping and partitioning strategies, positioning itself as a leader in the GPU-parallelized simulator landscape.
Methodology
LPSim treats traffic simulation as a massive Single Instruction, Multiple Data (SIMD) problem. The framework implements several key technical innovations to optimize performance:
- Vectorized Memory Mapping: To maximize memory efficiency, the road network is represented in GPU memory using a compact 1-byte-per-meter mapping. In this system, a value of 255 indicates empty space, while values 0–254 represent a vehicle’s current speed.
- Dual Graph Partitioning: Depending on available resources, LPSim employs two strategies. Balanced Partitioning distributes workload evenly when resources are tight. Unbalanced (Community-based) Partitioning uses the Leiden algorithm to group highly connected road segments, minimizing inter-GPU communication overhead by reducing the frequency of vehicles "jumping" between processors.
- Ghost Zones: To maintain data consistency during vehicle transitions between GPUs, LPSim utilizes replicated buffer areas known as "Ghost Zones," ensuring smooth hand-offs and synchronization.
- Dynamic Data Management: The framework utilizes the
device_vectorfrom the Thrust library, allowing for efficient memory reallocation as vehicle counts fluctuate throughout the simulation period.
Experimental Setup
The framework was rigorously evaluated using real-world data from the San Francisco County Transportation Authority (SFCTA). The test environment included:
- Network: A comprehensive map of the SF Bay Area consisting of 224,223 nodes and 549,008 edges.
- Demand: A dataset of over 23.5 million recorded trips representing a typical weekday.
- Benchmarks: LPSim's performance was compared against established simulators, including various versions of SUMO (mesoscopic and microscopic), MANTA, and Mobiliti.
Key Insights and Performance Analysis
A critical breakthrough in LPSim's development involved applying the Roofline Model for performance analysis. The authors discovered that sorting vehicle trips by departure time significantly reduced thread divergence. By ensuring that threads within the same GPU warp processed similar tasks, they narrowed the gap between actual and theoretical peak performance by a factor of five.
Furthermore, the research highlights a vital trade-off between computation and communication. While adding GPUs generally increases speed, the time spent on inter-GPU communication (even with high-speed interconnects like NVLink) can eventually outweigh processing gains if the problem size is not sufficiently large.
Results
LPSim demonstrates a massive performance leap over traditional methods. It completed a regional simulation approximately 113 times faster than an Intel Xeon Gold CPU (0.04 hours vs. 4.49 hours).
As shown in the performance comparison, LPSim (2.4 minutes) significantly outperforms both specialized GPU simulators like MANTA (4.6 minutes) and traditional CPU-based microscopic simulators like SUMO, which can take over 100,000 minutes for similar regional tasks. LPSim is currently the only framework capable of scaling to 24 million Origin-Destination (OD) trips and beyond, achieving throughput that was previously unattainable in microscopic simulation.
Limitations and Future Directions
Despite its speed, LPSim has certain constraints. The 1-byte-per-meter mapping limits spatial resolution to 1 meter and caps vehicle speeds at 254 m/s. Additionally, peak performance is hardware-dependent, relying on high-speed Peer-to-Peer (P2P) communication like NVLink.
Future work will focus on extending LPSim to multimodal transport, including public transit and bicycle networks. The authors also plan to investigate the use of shared memory within GPU segments to further reduce global memory access latency.
Summary updated