How to Read Data into GPU Memory in Python with NVIDIA GPUDirect Storage

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

Engineers moving large datasets to GPU memory can now verify, with per-process cuFile statistics, whether their Python I/O actually used the accelerated nvidia-fs path or silently fell back to CPU staging.

Read this as

NVIDIA published a tutorial on its KvikIO Python library, which reads files directly into GPU memory instead of routing them through the computer's main memory first. This direct route, called GPUDirect Storage, saves time and reduces processor load when moving very large files. The tutorial shows how to confirm the fast path was actually used using a statistics tool called gds_stats. It matters to teams processing large datasets with NVIDIA GPUs, such as those using the cuDF data library.

NVIDIA's KvikIO library is already accelerating data ingestion inside cuDF, cuCIM and GPU-accelerated Presto, and this tutorial lowers the barrier for teams adopting it in Python, where nearly half of new GitHub AI projects live. The risk it addresses is silent fallback: code that calls cuFile can still run on a slow CPU-staged path if configuration is wrong. The article gives no performance benchmarks, so cost savings remain unquantified.

KvikIO and cuFile make independent path decisions: KVIKIO_COMPAT_MODE and KVIKIO_GDS_THRESHOLD (default 16 KiB) govern whether cuFile is called, while cufile.json execution settings (parallel_io, min_io_threshold_size_kb) govern how requests decompose. With KvikIO's default 4 MiB task size, a 1 GiB read becomes 256 cuFile requests, all counted as nvfs operations via CUFILE_STATS_LEVEL=3. Unregistered buffers route through 16 MiB slabs of GPU bounce memory, and the test setup used an H100 with CUDA 13.3, ext4 NVMe, and IOMMU/ACS disabled.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

NVIDIA KvikIO GPUDirect Storage cuFile cuDF nvidia-fs kernel module gds_stats

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading