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

DevFeed: [How to Read Data into GPU Memory in Python with NVIDIA GPUDirect Storage](<https://devfeed.tech/articles/how-to-read-data-into-gpu-memory-in-python-with-nvidia-gpudirect-storage-96022.md>)

Original publisher: [Read original article](<https://developer.nvidia.com/blog/how-to-read-data-into-gpu-memory-in-python-with-nvidia-gpudirect-storage/>)

Author: Tanya Lenz

Published: 2026-10-22T16:39:09Z

Content type: tutorial

Language: en

Sources: [NVIDIA Developer](<https://devfeed.tech/sources/nvidia-developer.md>), [NVIDIA Technical Blog](<https://devfeed.tech/sources/nvidia-technical-blog.md>)

Topics: [GPUDirect](<https://devfeed.tech/topics/gpudirect.md>), [IO](<https://devfeed.tech/topics/io.md>), [Scapy](<https://devfeed.tech/topics/scapy.md>), [CUDA-X](<https://devfeed.tech/topics/cuda-x.md>), [dma](<https://devfeed.tech/topics/dma.md>), [NVMe](<https://devfeed.tech/topics/nvme.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>), [RAPIDS](<https://devfeed.tech/topics/rapids.md>), [big-data](<https://devfeed.tech/topics/big-data.md>)

Tags: [accelerated](<https://devfeed.tech/tags/accelerated.md>), [accelerators](<https://devfeed.tech/tags/accelerators.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [api](<https://devfeed.tech/tags/api.md>), [applications](<https://devfeed.tech/tags/applications.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [compute](<https://devfeed.tech/tags/compute.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [cuda-x](<https://devfeed.tech/tags/cuda-x.md>), [cudf](<https://devfeed.tech/tags/cudf.md>), [data-center-cloud](<https://devfeed.tech/tags/data-center-cloud.md>), [data-science](<https://devfeed.tech/tags/data-science.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [developer-tools-techniques](<https://devfeed.tech/tags/developer-tools-techniques.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gpu-memory](<https://devfeed.tech/tags/gpu-memory.md>), [gpudirect](<https://devfeed.tech/tags/gpudirect.md>), [gpudirect-storage](<https://devfeed.tech/tags/gpudirect-storage.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [processing](<https://devfeed.tech/tags/processing.md>), [python](<https://devfeed.tech/tags/python.md>), [storage](<https://devfeed.tech/tags/storage.md>)

## AI overview

NVIDIA KvikIO lets Python applications read files into GPU memory through GPUDirect Storage (GDS), but reaching cuFile does not prove that the accelerated path was used. KvikIO first chooses between cuFile and its POSIX backend; cuFile then selects the actual transfer path based on system support and its own configuration. The tutorial requires Linux, an NVIDIA GPU, installed GDS, and supported storage. It demonstrates allocating a CuPy buffer, reading a file with KvikIO, and checking level-three cuFile statistics with `gds_stats`: `nvfs` counts `nvidia-fs` operations, while `posix` counts cuFile compatibility operations. Its tested 1 GiB read produced 256 `nvfs` operations and no `posix` operations. The examples distinguish forcing KvikIO to use cuFile, forcing cuFile's compatibility path, and bypassing cuFile through KvikIO's POSIX backend. KvikIO task size and cuFile execution settings independently affect how requests are divided and scheduled.

## Source excerpt

GPU applications are processing ever-growing datasets with increasingly powerful accelerators. According to the 2025 Stanford AI Index, compute for notable AI...