Skip to main content

cugraph_dgl

Description

RAPIDS cugraph_dgl provides a duck-typed version of the DGLGraph class, which uses cugraph for storing graph structure and node/edge feature data. Using cugraph as the backend allows DGL users to access a collection of GPU accelerated algorithms for graph analytics, such as centrality computation and community detection.

Conda

Install and update cugraph-dgl and the required dependencies using the command:

# CUDA 11
conda install -c rapidsai -c pytorch -c conda-forge -c nvidia -c dglteam/label/th24_cu118 cugraph-dgl

# CUDA 12
conda install -c rapidsai -c pytorch -c conda-forge -c nvidia -c dglteam/label/th24_cu124 cugraph-dgl

Build from Source

Create the conda development environment

mamba env create -n cugraph_dgl_dev --file conda/cugraph_dgl_dev_11.6.yml

Install in editable mode

pip install -e .

Run tests

pytest tests/*

Usage

+from cugraph_dgl.convert import cugraph_storage_from_heterograph
+cugraph_g = cugraph_storage_from_heterograph(dgl_g)

sampler = dgl.dataloading.NeighborSampler(
        [15, 10, 5], prefetch_node_feats=['feat'], prefetch_labels=['label'])

train_dataloader = dgl.dataloading.DataLoader(
- dgl_g,
+ cugraph_g,
train_idx,
sampler,
device=device,
batch_size=1024,
shuffle=True,
drop_last=False,
num_workers=0)

Metadata

Release files for cugraph-dgl-cu11 25.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cugraph-dgl-cu11 25.6.0
File Size Uploaded Provenance Actions
cugraph_dgl_cu11-25.6.0.tar.gz 1.5 kB Without provenance Details for cugraph_dgl_cu11-25.6.0.tar.gz

Release files / cugraph_dgl_cu11-25.6.0.tar.gz

Download URL cugraph_dgl_cu11-25.6.0.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fff513461a0cfcd01266beced1841a56ea86ac0f1dc896c00fd5755112d72546
BLAKE2b-256 checksum
How to use checksums
7c4ebcf0433f4bc1bad41b2d08105ebda8cf1feae2b0ce51c4b993827e776149
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.18

Security for cugraph-dgl-cu11 25.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page