Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

typst.

typst demo.

GPU Batching Strategies for Atomistic SimulationsComparison of Unbatched vs. BinningAutoBatcher vs. InFlightAutoBatcherUnbatchedSimulationsCPU Utilization 80%GPU Utilization 5%CPUGPUt=1t=2t=3t=4t=5t=6t=7t=8t=9t=10t=11t=12t=13t=14t=15t=16BinningAutoBatcherCPU Utilization 40%GPU Utilization 60%CPUGPUt=1t=2t=3t=4t=5t=6t=7t=8t=9t=10t=11t=12t=13t=14t=15t=16InFlightAutoBatcherCPU Utilization 60%GPU Utilization 90%CPUGPUt=1t=2t=3t=4t=5t=6t=7t=8t=9t=10t=11t=12t=13t=14t=15t=16Structure 1Structure 2Structure 3Structure 4Structure 5Structure 6Structure 7Structure 8… continuesS1S1S2S2S3S3S4S4S5S5S5S6S6S6S6S6S7S7Prep batchPrep batchS1S2S3S4S5S1S2S3S4S5S2S3S4S5S3S4S5S4S4Batch 1 CompleteS6S7S8S9S10S6S7S8S9S10S7S9S10S7S10S7S7Batch 2 Complete100% GPU60% GPU30% GPU100% GPU60% GPU20% GPUMust wait for batch to complete, resulting in underutilized GPUPrepPrepPrepPrepPrepPrepPrepPrepS1S2S3S4S5S1S2S3S4S5S1S7S3S4S5S6S7S8S4S5S6S7S8S9S5S6S7S8S9S10S6S7S8S9S10S6S7S8Final batch partially filledIn-flight batching achieves highest GPU utilization and maximizes predictions per unit timeUnbatched: Each simulation runs sequentially with most calculations on CPU and minimal GPU utilizationBinning: Fixed-size batches improve GPU utilization but can’t adapt to varying simulation completion timesIn-flight: Dynamic reallocation eliminates GPU idle time by immediately adding new structures when others complete. Color changes indicate in-flight structure replacement.