Skip to main content

High-performance Python library for zero-copy memory mapping.

Project description

PointerFlow

PointerFlow is a high-performance library for Python designed to eliminate the data transfer bottleneck between CPU and GPU. By using zero-copy memory mapping, it allows processors to share a common physical memory space completely asynchronously. It is powered by C++ and custom-made CUDA kernels.

The Edge of Low Latency

In applications where milliseconds also count, PointerFlow is faster than conventional frameworks like PyTorch in real-time data flow management applications.

  • Round-Trip Latency: Reduced from 0.86 ms (industry standard) to 0.14 ms.
  • Dispatch Overhead: Return of control to Python in < 0.1 ms using non-blocking CUDA Streams.
  • True Zero-Copy: Complete elimination of cudaMemcpy. Data written to a NumPy view is instantly available to the GPU via the PCIe bus.

Technical Architecture

PointerFlow combines the efficiency of C++20 with the flexibility of Python through a low-level integration.

  1. Memory Management (RAII): Automatic lifecycle management of Pinned Memory and CUDA Streams to prevent memory leaks in high-frequency executions.
  2. NumPy Integration: Creating memory views using py::capsule, allowing Python to manipulate data in RAM that is read directly by the GPU.
  3. Asynchronous Execution: Native support for CUDA kernels fired in independent streams, allowing real overlap of computation and business logic.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pointerflow-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pointerflow-0.1.0-cp312-cp312-win_amd64.whl (278.9 kB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file pointerflow-0.1.0.tar.gz.

File metadata

  • Download URL: pointerflow-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pointerflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 777e67111e78f0a7606f14d7fd0f09eae2bd171807231a4cffb5eed2eb50dea8
MD5 667e275f5b90f2ab919b5c55c1e927c4
BLAKE2b-256 a91ed13c853ace8107ee671a09923706142691330afcbf6f1d1f2934555f22d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pointerflow-0.1.0.tar.gz:

Publisher: publish.yml on Sheikyon/PointerFlow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pointerflow-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pointerflow-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 52ae058cee580c58c59f3a045a250534670a3a63aa031109827e8d510d725d4e
MD5 075fa5480969b228948d969055c5e565
BLAKE2b-256 bff263907fe5852630d021ae60d39ea80dadd07f9c7a8e99b8124d8a0ec89100

See more details on using hashes here.

Provenance

The following attestation bundles were made for pointerflow-0.1.0-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on Sheikyon/PointerFlow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page