Data transfer
Search documents
X @Avi Chawla
Avi Chawla· 2025-10-19 06:31
Here's a neural net optimization trick that leads to ~4x faster CPU to GPU transfers.Imagine an image classification task.- We define the network, load the data and transform it.- In the training loop, we transfer the data to the GPU and train.Here's the problem with this:If you look at the profiler:- Most of the time/resources will be allocated to the kernel (the actual training code).- However, a significant amount of time will also be dedicated to data transfer from CPU to GPU (this appears under cudaMem ...
X @Avi Chawla
Avi Chawla· 2025-09-21 19:48
RT Avi Chawla (@_avichawla)PyTorch dataloader has 2 terrible default settings.Fixing them gave me ~5x speedup.When you train a PyTorch model on a GPU:- .to(device) transfers the data to the GPU.- Everything after this executes on the GPU.This means when the GPU is working, the CPU is idle, and when the CPU is working, the GPU is idle.Memory pinning optimizes this as follows:- When the model is trained on the 1st mini-batch, the CPU can transfer the 2nd mini-batch to the GPU.- This ensures that the GPU does ...
How to Transfer Game Data to a Nintendo Switch 2
CNET· 2025-06-21 12:00
Product Launch & Features - Nintendo Switch 2 launched, offering a more powerful gaming experience with 4K resolution support [1] - Data transfer is currently only supported from original Switch to Switch 2 [2] Data Transfer Process - Both consoles (original Switch and Switch 2) should be powered on, connected to AC adapters, and in close proximity [3] - System transfer is initiated automatically on first boot of Switch 2, or manually via settings [3][4] - Users can choose to insert a micro SD Express card for additional storage during the transfer process [4] - Users need to sign in to the same Nintendo account on both consoles [5] - The original Switch will display a list of save data to be removed and transferred [6] - Transfer time varies based on the amount of data; one example took approximately 7 minutes [7] - After transfer, Switch 2 restarts and downloads installed games [7]