Menu

124x Slower: What PyTorch DataLoader Actually Does at the Kernel Level

DEV Community: pytorch·Ingero Team·6 months ago
#9zUBmuJ9
#dev#class#code#strong#dataloader
Reading 0:00
15s threshold

TL;DR: PyTorch's DataLoader can be 50-124x slower than direct tensor indexing for in-memory GPU workloads. We reproduced a real PyTorch issue on an RTX 4090 and traced every CUDA API call and Linux kernel event to find the root cause.…

Anonymous readers can preview up to 1024 characters here. Log in to unlock the full article once ingest succeeds.