cugraph-dgl-cu11


Namecugraph-dgl-cu11 JSON
Version 24.8.0 PyPI version JSON
download
home_pageNone
Summarycugraph extensions for DGL
upload_time2024-08-08 16:09:48
maintainerNone
docs_urlNone
authorNVIDIA Corporation
requires_python>=3.9
licenseApache 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # cugraph_dgl

## Description

[RAPIDS](https://rapids.ai) cugraph_dgl provides a duck-typed version of the [DGLGraph](https://docs.dgl.ai/api/python/dgl.DGLGraph.html#dgl.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:

```
conda install mamba -n base -c conda-forge
mamba install cugraph-dgl -c rapidsai-nightly -c rapidsai -c pytorch -c conda-forge -c nvidia -c dglteam
```

## 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
```diff

+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)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cugraph-dgl-cu11",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "NVIDIA Corporation",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/9a/f7/f995faecc1ccb0b97966b7f51974287429c3c5a356fcea38d06dcb361a97/cugraph_dgl_cu11-24.8.0.tar.gz",
    "platform": null,
    "description": "# cugraph_dgl\n\n## Description\n\n[RAPIDS](https://rapids.ai) cugraph_dgl provides a duck-typed version of the [DGLGraph](https://docs.dgl.ai/api/python/dgl.DGLGraph.html#dgl.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.\n\n## Conda\n\nInstall and update cugraph-dgl and the required dependencies using the command:\n\n```\nconda install mamba -n base -c conda-forge\nmamba install cugraph-dgl -c rapidsai-nightly -c rapidsai -c pytorch -c conda-forge -c nvidia -c dglteam\n```\n\n## Build from Source\n\n### Create the conda development environment\n```\nmamba env create -n cugraph_dgl_dev --file conda/cugraph_dgl_dev_11.6.yml\n```\n\n### Install  in editable mode\n```\npip install -e .\n```\n\n### Run tests\n\n```\npytest tests/*\n```\n\n\n## Usage\n```diff\n\n+from cugraph_dgl.convert import cugraph_storage_from_heterograph\n+cugraph_g = cugraph_storage_from_heterograph(dgl_g)\n\nsampler = dgl.dataloading.NeighborSampler(\n        [15, 10, 5], prefetch_node_feats=['feat'], prefetch_labels=['label'])\n\ntrain_dataloader = dgl.dataloading.DataLoader(\n- dgl_g,\n+ cugraph_g,\ntrain_idx,\nsampler,\ndevice=device,\nbatch_size=1024,\nshuffle=True,\ndrop_last=False,\nnum_workers=0)\n```\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "cugraph extensions for DGL",
    "version": "24.8.0",
    "project_urls": {
        "Documentation": "https://docs.rapids.ai/api/cugraph/stable/",
        "Homepage": "https://github.com/rapidsai/cugraph"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9af7f995faecc1ccb0b97966b7f51974287429c3c5a356fcea38d06dcb361a97",
                "md5": "f103f17e771bc056db600e5adfe7ed9f",
                "sha256": "288ab0b37c3c2897d0f206ee4d1d6f373d996e8a42e45cdec0892c5463b5f5d9"
            },
            "downloads": -1,
            "filename": "cugraph_dgl_cu11-24.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f103f17e771bc056db600e5adfe7ed9f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 1412,
            "upload_time": "2024-08-08T16:09:48",
            "upload_time_iso_8601": "2024-08-08T16:09:48.904629Z",
            "url": "https://files.pythonhosted.org/packages/9a/f7/f995faecc1ccb0b97966b7f51974287429c3c5a356fcea38d06dcb361a97/cugraph_dgl_cu11-24.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-08 16:09:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rapidsai",
    "github_project": "cugraph",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cugraph-dgl-cu11"
}
        
Elapsed time: 0.56236s