Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyG Monorepo Refactor #2905

Merged
merged 127 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from 126 commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
2a6c9cf
PropertyGraph set index to vertex and edge ids
eriknw Aug 9, 2022
4c93f77
Update graph_store
eriknw Aug 10, 2022
2631715
flake8
eriknw Aug 10, 2022
ff0f80c
Merge branch 'branch-22.10' into pg_set_index
eriknw Sep 7, 2022
99c2e0e
Set index to vertex or edge IDs in PG for MG
eriknw Sep 14, 2022
1a1e039
Merge branch 'pg_set_index' of https://github.com/eriknw/cugraph into…
alexbarghi-nv Sep 21, 2022
9bbf048
fixes
alexbarghi-nv Sep 21, 2022
4496cba
merge
alexbarghi-nv Oct 12, 2022
ccae80b
Fix concat with different index dtypes in SG PropertyGraph
eriknw Oct 13, 2022
824d083
initial
alexbarghi-nv Oct 17, 2022
5aaa90d
initial work on remote wrappers, very rough
alexbarghi-nv Oct 18, 2022
52fe830
merge resolution
alexbarghi-nv Oct 18, 2022
3221911
additional functionality, v/e counts
alexbarghi-nv Oct 18, 2022
f097043
copyright update
alexbarghi-nv Oct 18, 2022
7d33ed6
additional functions
alexbarghi-nv Oct 18, 2022
d14ae24
quick fix
alexbarghi-nv Oct 18, 2022
10bf725
Merge branch 'sgpg_fix_concat' of https://github.com/eriknw/cugraph i…
alexbarghi-nv Oct 18, 2022
1887ce7
add definition for remote graph, tests for pg
alexbarghi-nv Oct 18, 2022
f598dbe
remove dispatch (will be added in other pr)
alexbarghi-nv Oct 18, 2022
6b34f5b
Merge branch 'branch-22.12' of https://github.com/rapidsai/cugraph in…
alexbarghi-nv Oct 18, 2022
8495b70
revert inadvertently changed file
alexbarghi-nv Oct 18, 2022
7ffd777
Merge branch 'branch-22.12' of https://github.com/rapidsai/cugraph in…
alexbarghi-nv Oct 19, 2022
5089def
initial changes
alexbarghi-nv Oct 20, 2022
c157076
update version
alexbarghi-nv Oct 20, 2022
bc400ca
Merge branch 'branch-22.12' of https://github.com/rapidsai/cugraph in…
alexbarghi-nv Oct 20, 2022
ab3a28e
pull in dispatch from other branch
alexbarghi-nv Oct 20, 2022
438bfff
dispatch
alexbarghi-nv Oct 21, 2022
50fd0df
fix get_vertices(), add tests
alexbarghi-nv Oct 21, 2022
7fe9b0f
tests, fixes
alexbarghi-nv Oct 21, 2022
0a88a52
fix typo
alexbarghi-nv Oct 21, 2022
ae87b94
major changes to update output array/dataframe/tensor handling, unit/…
alexbarghi-nv Oct 25, 2022
ec44561
Merge branch 'cgs-remote-wrappers' of https://github.com/alexbarghi-n…
alexbarghi-nv Oct 25, 2022
c7d7112
fix merge conflict
alexbarghi-nv Oct 25, 2022
5703d41
fix version
alexbarghi-nv Oct 25, 2022
c8379ad
infer default backend
alexbarghi-nv Oct 25, 2022
3aed33d
fix default backend for remote pg
alexbarghi-nv Oct 25, 2022
ce12b47
reverse this commit
alexbarghi-nv Oct 25, 2022
092db5e
Revert "reverse this commit"
alexbarghi-nv Oct 25, 2022
e1a3c1f
Merge branch 'branch-22.12' of https://github.com/rapidsai/cugraph in…
alexbarghi-nv Oct 25, 2022
a66e437
remove useless code from pg, remove print statement
alexbarghi-nv Oct 26, 2022
a18b336
move backend call to methods, add graph() factory, update tests
alexbarghi-nv Oct 26, 2022
865ca44
fix version
alexbarghi-nv Oct 26, 2022
0975038
fix get vertex/edge data with types in cgs handler, minor raii fix, u…
alexbarghi-nv Oct 26, 2022
8f28820
fix version
alexbarghi-nv Oct 26, 2022
c8289f6
update branch
alexbarghi-nv Oct 26, 2022
03a1cf2
minor fix
alexbarghi-nv Oct 26, 2022
9b2ff76
add loader fix initial code
alexbarghi-nv Oct 28, 2022
e007684
fixes
alexbarghi-nv Nov 1, 2022
e1d4b84
Resolve merge conflict
alexbarghi-nv Nov 1, 2022
bf3df8a
cleanup, fixes for renumbering
alexbarghi-nv Nov 1, 2022
7931832
support for pg api
alexbarghi-nv Nov 1, 2022
668f95f
sampling, algo calls, implicit sg, fixes for multigraph
alexbarghi-nv Nov 2, 2022
3fc56be
fix version
alexbarghi-nv Nov 2, 2022
4955f90
remove print statements
alexbarghi-nv Nov 2, 2022
5b2a917
Merge branch 'cgs-remote-sample' into loader_fix
alexbarghi-nv Nov 2, 2022
90f700f
resolve merge conflict
alexbarghi-nv Nov 7, 2022
c96be0a
fix version
alexbarghi-nv Nov 8, 2022
8dc069e
fix version
alexbarghi-nv Nov 9, 2022
64b7d82
rename columns
alexbarghi-nv Nov 9, 2022
be41c53
switch to import_optional
alexbarghi-nv Nov 9, 2022
8462a24
minor cleanup
alexbarghi-nv Nov 9, 2022
53020e2
prevent copy in numpy to numpy conversion
alexbarghi-nv Nov 9, 2022
ddfb89d
is_mg -> is_multi_gpu
alexbarghi-nv Nov 9, 2022
2548efd
point to new issue
alexbarghi-nv Nov 9, 2022
09a5be4
point to new issue
alexbarghi-nv Nov 9, 2022
260ab2e
Merge branch 'cgs-remote-sample' into loader_fix
alexbarghi-nv Nov 9, 2022
24f9c85
add fillna to property graph
alexbarghi-nv Nov 9, 2022
9716f3f
fix notebook
alexbarghi-nv Nov 9, 2022
261eb29
remove include code
alexbarghi-nv Nov 9, 2022
c6d49ba
update version
alexbarghi-nv Nov 9, 2022
091c958
test, doc updates
alexbarghi-nv Nov 9, 2022
37fc74d
add different check for sg/mg
alexbarghi-nv Nov 9, 2022
29d51f0
update is_mg calls
alexbarghi-nv Nov 9, 2022
3490c26
fix version
alexbarghi-nv Nov 9, 2022
8f8470e
Merge branch 'branch-22.12' into loader_fix
alexbarghi-nv Nov 9, 2022
2d0c39e
initial move
alexbarghi-nv Nov 10, 2022
8914b6e
build
alexbarghi-nv Nov 10, 2022
e9540b7
get tests running
alexbarghi-nv Nov 10, 2022
06c4e74
remove egg
alexbarghi-nv Nov 10, 2022
bd808bf
update gitignore
alexbarghi-nv Nov 10, 2022
b581f74
fix copyright
alexbarghi-nv Nov 10, 2022
5d34bde
exempt the versioneer from copyright check
alexbarghi-nv Nov 10, 2022
b1d90df
integration tests
alexbarghi-nv Nov 10, 2022
22ed1c5
add clarification for cgs
alexbarghi-nv Nov 10, 2022
644c08b
initial conda
alexbarghi-nv Nov 10, 2022
1100170
fix copyright
alexbarghi-nv Nov 10, 2022
f1c973c
add back cuda major
alexbarghi-nv Nov 10, 2022
d77d768
add conda build config
alexbarghi-nv Nov 10, 2022
8b06783
fix merge conflicts
alexbarghi-nv Nov 14, 2022
b3c60d0
renaming
alexbarghi-nv Nov 14, 2022
abe6842
fix syntax errors from bad merge, re-rename directory
alexbarghi-nv Nov 14, 2022
368b77c
Update _version.py
alexbarghi-nv Nov 15, 2022
6d1767f
merge
alexbarghi-nv Nov 15, 2022
8a5567a
Merge branch 'pyg-monorepo-refactor' of https://github.com/alexbarghi…
alexbarghi-nv Nov 15, 2022
61cad9e
minor
alexbarghi-nv Nov 15, 2022
4dcce7f
comment update
alexbarghi-nv Nov 15, 2022
27ccd3d
cleanup build
alexbarghi-nv Nov 15, 2022
49beb47
fix version
alexbarghi-nv Nov 15, 2022
bad6e87
resolve merge conflict
alexbarghi-nv Nov 15, 2022
892ff3e
remove cugraph req
alexbarghi-nv Nov 15, 2022
346184b
remove strict-channel-priority flag
alexbarghi-nv Nov 16, 2022
822e01d
update test import
alexbarghi-nv Nov 17, 2022
a4588e8
fix merge conflict, should pass tests now
alexbarghi-nv Nov 21, 2022
984dead
Restore gitignore
alexbarghi-nv Nov 21, 2022
c8f0cad
remove dask logs
alexbarghi-nv Nov 21, 2022
2559b8c
add whitespace
alexbarghi-nv Nov 21, 2022
ee5c3b8
add whitespace
alexbarghi-nv Nov 21, 2022
5cf1893
correct copyright date
alexbarghi-nv Nov 21, 2022
936af3f
add PyG to requirements docstring list
alexbarghi-nv Nov 21, 2022
f107ec2
remove rmm calls
alexbarghi-nv Nov 21, 2022
f3989b4
remove cpp build code
alexbarghi-nv Nov 21, 2022
5154bd5
fix copyright date
alexbarghi-nv Nov 21, 2022
6756c4e
remove unused imports
alexbarghi-nv Nov 21, 2022
1e8189e
do not build cugraph-pyg and cugraph-dgl by default
alexbarghi-nv Nov 21, 2022
4d31b88
attribution for cugraph code
alexbarghi-nv Nov 22, 2022
a17ec47
attribution for cugraph code
alexbarghi-nv Nov 22, 2022
7cefa73
remove markers from pytest config
alexbarghi-nv Nov 22, 2022
34b87c5
remove cython config from pyg setup.py
alexbarghi-nv Nov 22, 2022
62666b5
remove cython, cmake from project
alexbarghi-nv Nov 22, 2022
175670f
remove cython and numba dependencies
alexbarghi-nv Nov 22, 2022
a322c0e
add empty list for reqs
alexbarghi-nv Nov 22, 2022
bd49387
shorten attribution message
alexbarghi-nv Nov 23, 2022
c4f85f2
reformat
alexbarghi-nv Nov 28, 2022
7f21694
no longer build CGS by default
alexbarghi-nv Nov 28, 2022
00a4ba0
Merge branch 'branch-22.12' of https://github.com/rapidsai/cugraph in…
alexbarghi-nv Nov 28, 2022
57b4492
Merge branch 'branch-22.12' of https://github.com/rapidsai/cugraph in…
alexbarghi-nv Nov 29, 2022
36eeceb
Update ci/test.sh
alexbarghi-nv Nov 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ VALIDARGS="
cugraph-service
pylibcugraph
cpp-mgtests
cugraph-pyg
cugraph-dgl
docs
-v
Expand All @@ -50,6 +51,7 @@ HELP="$0 [<target> ...] [<flag> ...]
libcugraph - build libcugraph.so and SG test binaries
libcugraph_etl - build libcugraph_etl.so and SG test binaries
pylibcugraph - build the pylibcugraph Python package
cugraph-pyg - build the cugraph-pyg Python package
cugraph - build the cugraph Python package
cugraph-service - build the cugraph-service_client and cugraph-service_server Python package
cpp-mgtests - build libcugraph and libcugraph_etl MG tests. Builds MPI communicator, adding MPI as a dependency.
Expand All @@ -67,7 +69,7 @@ HELP="$0 [<target> ...] [<flag> ...]
--clean - clean an individual target (note: to do a complete rebuild, use the clean target described above)
-h - print this text

default action (no args) is to build and install 'libcugraph' then 'libcugraph_etl' then 'pylibcugraph' then 'cugraph' then 'cugraph-service' targets
default action (no args) is to build and install 'libcugraph' then 'libcugraph_etl' then 'pylibcugraph' then 'cugraph' targets

libcugraph build dir is: ${LIBCUGRAPH_BUILD_DIR}

Expand Down Expand Up @@ -198,7 +200,7 @@ if hasArg uninstall; then
# FIXME: if multiple versions of these packages are installed, this only
# removes the latest one and leaves the others installed. build.sh uninstall
# can be run multiple times to remove all of them, but that is not obvious.
pip uninstall -y pylibcugraph cugraph cugraph-service-client cugraph-service-server cugraph-dgl
pip uninstall -y pylibcugraph cugraph cugraph-service-client cugraph-service-server cugraph-dgl cugraph-pyg
fi

if hasArg clean; then
Expand Down Expand Up @@ -337,7 +339,7 @@ if buildAll || hasArg cugraph; then
fi

# Install the cugraph-service-client and cugraph-service-server Python packages
if buildAll || hasArg cugraph-service; then
if hasArg cugraph-service; then
if hasArg --clean; then
cleanPythonDir ${REPODIR}/python/cugraph-service
else
Expand All @@ -350,8 +352,20 @@ if buildAll || hasArg cugraph-service; then
fi
fi

# Build and install the cugraph-pyg Python package
if hasArg cugraph-pyg; then
if hasArg --clean; then
cleanPythonDir ${REPODIR}/python/cugraph-pyg
else
if [[ ${INSTALL_TARGET} != "" ]]; then
cd ${REPODIR}/python/cugraph-pyg
python ${PYTHON_ARGS_FOR_INSTALL}
fi
fi
fi

# Install the cugraph-dgl extensions for DGL
if buildAll || hasArg cugraph-dgl; then
if hasArg cugraph-dgl; then
if hasArg --clean; then
cleanPythonDir ${REPODIR}/python/cugraph-dgl
else
Expand Down
2 changes: 1 addition & 1 deletion ci/checks/copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
re.compile(r"[.]flake8[.]cython$"),
re.compile(r"meta[.]yaml$")
]
ExemptFiles = []
ExemptFiles = ['versioneer.py']

# this will break starting at year 10000, which is probably OK :)
CheckSimple = re.compile(
Expand Down
4 changes: 4 additions & 0 deletions ci/cpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ if [ "$BUILD_CUGRAPH" == "1" ]; then
gpuci_conda_retry mambabuild --no-build-id --croot ${CONDA_BLD_DIR} conda/recipes/cugraph --python=$PYTHON
gpuci_logger "cugraph-service"
gpuci_conda_retry mambabuild --no-build-id --croot ${CONDA_BLD_DIR} conda/recipes/cugraph-service --python=$PYTHON
gpuci_logger "cugraph-pyg"
gpuci_conda_retry mambabuild --no-build-id --croot ${CONDA_BLD_DIR} conda/recipes/cugraph-pyg --python=$PYTHON
gpuci_logger "cugraph-dgl"
gpuci_conda_retry mambabuild --no-build-id --croot ${CONDA_BLD_DIR} conda/recipes/cugraph-dgl --python=$PYTHON -c dglteam -c pytorch
else
Expand All @@ -124,6 +126,8 @@ if [ "$BUILD_CUGRAPH" == "1" ]; then
gpuci_conda_retry mambabuild --no-build-id --croot ${CONDA_BLD_DIR} conda/recipes/cugraph -c ${CONDA_LOCAL_CHANNEL} --dirty --no-remove-work-dir --python=$PYTHON
gpuci_logger "cugraph-service"
gpuci_conda_retry mambabuild --no-build-id --croot ${CONDA_BLD_DIR} conda/recipes/cugraph-service -c ${CONDA_LOCAL_CHANNEL} --dirty --no-remove-work-dir --python=$PYTHON
gpuci_logger "cugraph-pyg"
gpuci_conda_retry mambabuild --no-build-id --croot ${CONDA_BLD_DIR} conda/recipes/cugraph-pyg -c ${CONDA_LOCAL_CHANNEL} --dirty --no-remove-work-dir --python=$PYTHON
gpuci_logger "cugraph-dgl"
gpuci_conda_retry mambabuild --no-build-id --croot ${CONDA_BLD_DIR} conda/recipes/cugraph-dgl -c ${CONDA_LOCAL_CHANNEL} --dirty --no-remove-work-dir --python=$PYTHON -c dglteam -c pytorch

Expand Down
9 changes: 7 additions & 2 deletions ci/cpu/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,21 @@ if [[ "$BUILD_CUGRAPH" == "1" ]]; then
test -e ${PYLIBCUGRAPH_FILE}
echo "Upload pylibcugraph file: ${PYLIBCUGRAPH_FILE}"
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${PYLIBCUGRAPH_FILE} --no-progress

CUGRAPH_FILE=$(conda build --croot ${CONDA_BLD_DIR} conda/recipes/cugraph --python=$PYTHON --output)
test -e ${CUGRAPH_FILE}
echo "Upload cugraph file: ${CUGRAPH_FILE}"
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${CUGRAPH_FILE} --no-progress

CUGRAPH_SERVICE_FILES=$(conda build --croot ${CONDA_BLD_DIR} conda/recipes/cugraph-service --python=$PYTHON --output)
# no test -e since CUGRAPH_SERVICE_FILES has multiple files
echo "Upload cugraph-server files: ${CUGRAPH_SERVICE_FILES}"
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing --no-progress ${CUGRAPH_SERVICE_FILES}

CUGRAPH_PYG_FILE=$(conda build --croot ${CONDA_BLD_DIR} conda/recipes/cugraph-pyg --python=$PYTHON --output)
test -e ${CUGRAPH_PYG_FILE}
echo "Upload cugraph file: ${CUGRAPH_PYG_FILE}"
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${CUGRAPH_PYG_FILE} --no-progress

CUGRAPH_DGL_FILE=$(conda build --croot ${CONDA_BLD_DIR} conda/recipes/cugraph-dgl --python=$PYTHON --output)
test -e ${CUGRAPH_DGL_FILE}
Expand Down
9 changes: 6 additions & 3 deletions ci/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ conda list --show-channel-urls

if [[ -z "$PROJECT_FLASH" || "$PROJECT_FLASH" == "0" ]]; then
gpuci_logger "Build from source"
$WORKSPACE/build.sh -v clean libcugraph pylibcugraph cugraph cugraph-service-server cugraph-service-client
$WORKSPACE/build.sh -v clean libcugraph pylibcugraph cugraph cugraph-service-server cugraph-service-client cugraph-pyg
else
gpuci_logger "Installing libcugraph-tests"
gpuci_mamba_retry install -c ${CONDA_ARTIFACT_PATH} libcugraph libcugraph_etl libcugraph-tests
Expand All @@ -132,8 +132,11 @@ else
gpuci_logger "cugraph-service"
gpuci_conda_retry mambabuild conda/recipes/cugraph-service --no-build-id --croot ${CONDA_BLD_DIR} -c ${CONDA_ARTIFACT_PATH} --python=${PYTHON}

gpuci_logger "Installing pylibcugraph, cugraph, and cugraph-service from build / artifact dirs"
gpuci_mamba_retry install -c ${CONDA_BLD_DIR} -c ${CONDA_ARTIFACT_PATH} --strict-channel-priority pylibcugraph cugraph cugraph-service-server cugraph-service-client
gpuci_logger "Building and installing cugraph-pyg..."
gpuci_conda_retry mambabuild conda/recipes/cugraph-pyg --no-build-id --croot ${CONDA_BLD_DIR} -c ${CONDA_ARTIFACT_PATH} --python=${PYTHON}

gpuci_logger "Installing pylibcugraph, cugraph, cugraph-pyg and cugraph-service from build / artifact dirs"
gpuci_mamba_retry install -c ${CONDA_BLD_DIR} -c ${CONDA_ARTIFACT_PATH} pylibcugraph cugraph cugraph-pyg cugraph-service-server cugraph-service-client
fi

################################################################################
Expand Down
7 changes: 7 additions & 0 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ if hasArg "--run-python-tests"; then
pytest -sv -m "managedmem_on and poolallocator_on and tiny" --benchmark-disable
echo "Ran Python benchmarks for cuGraph (running as tests) : return code was: $?, test script exit code is now: $EXITCODE"

echo "Python pytest for cugraph_pyg (single-GPU only)..."
conda list
cd ${CUGRAPH_ROOT}/python/cugraph_pyg/cugraph_pyg
alexbarghi-nv marked this conversation as resolved.
Show resolved Hide resolved
# rmat is not tested because of MG testing
pytest --cache-clear --junitxml=${CUGRAPH_ROOT}/junit-cugraph-pytests.xml -v --cov-config=.coveragerc --cov=cugraph_pyg --cov-report=xml:${WORKSPACE}/python/cugraph_pyg/cugraph-coverage.xml --cov-report term --ignore=raft --ignore=tests/mg --ignore=tests/int --ignore=tests/generators --benchmark-disable
echo "Ran Python pytest for cugraph_pyg : return code was: $?, test script exit code is now: $EXITCODE"

echo "Python pytest for cugraph-service (single-GPU only)..."
cd ${CUGRAPH_ROOT}/python/cugraph-service
pytest -sv --cache-clear --junitxml=${CUGRAPH_ROOT}/junit-cugraph-service-pytests.xml --benchmark-disable -k "not mg" ./tests
Expand Down
5 changes: 5 additions & 0 deletions conda/recipes/cugraph-pyg/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Copyright (c) 2022, NVIDIA CORPORATION.

# This assumes the script is executed from the root of the repo directory
./build.sh cugraph-pyg --allgpuarch
16 changes: 16 additions & 0 deletions conda/recipes/cugraph-pyg/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (c) 2022, NVIDIA CORPORATION.

c_compiler_version:
- 9

cxx_compiler_version:
- 9

cuda_compiler:
- nvcc

cmake_version:
- ">=3.23.1"

sysroot_version:
- "2.17"
50 changes: 50 additions & 0 deletions conda/recipes/cugraph-pyg/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright (c) 2022, NVIDIA CORPORATION.

# Usage:
# conda build -c rapidsai -c conda-forge -c nvidia .
{% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev').lstrip('v') + environ.get('VERSION_SUFFIX', '') %}
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %}
{% set cuda_version='.'.join(environ.get('CUDA', 'unknown').split('.')[:2]) %}
{% set cuda_major=cuda_version.split('.')[0] %}
{% set py_version=environ.get('CONDA_PY', 36) %}
package:
name: cugraph-pyg
version: {{ version }}

source:
git_url: ../../..

build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_major }}_py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
script_env:
- PARALLEL_LEVEL
preserve_egg_dir: True

requirements:
build:
- sysroot_{{ target_platform }} {{ sysroot_version }}
host:
- python x.x
- cython>=0.29,<0.30
- scikit-build>=0.13.1
# FIXME: this pin can be removed once we move to the GitHub Actions build process
- setuptools<=65.2.0
run:
- distributed>=2022.9.2
- numba>=0.56.2
- numpy
- pytorch
- cudatoolkit=11.6
# - pyg (uncomment once pyg 2.2 is released)

tests: # [linux64]
imports: # [linux64]
- cugraph_pyg # [linux64]
# - cugraph_service (uncomment once cugraph-service int. tests ready)

about:
home: http://rapids.ai/
license: Apache-2.0
license_file: ../../../LICENSE
summary: cuGraph-pyg library
13 changes: 11 additions & 2 deletions notebooks/gnn/pyg_hetero_mag.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"metadata": {},
"outputs": [],
"source": [
"from cugraph.experimental.pyg_extensions import to_pyg\n",
"from cugraph_pyg.data import to_pyg\n",
"\n",
"feature_store, graph_store = to_pyg(pG)"
]
Expand All @@ -184,7 +184,7 @@
"metadata": {},
"outputs": [],
"source": [
"from cugraph.experimental.pyg_extensions import CuGraphSampler\n",
"from cugraph_pyg.sampler import CuGraphSampler\n",
"sampler = CuGraphSampler(\n",
" data=(feature_store, graph_store),\n",
" shuffle=True,\n",
Expand Down Expand Up @@ -224,6 +224,15 @@
"### Create the Network"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%timeit next(iter(loader))"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
2 changes: 2 additions & 0 deletions python/cugraph-pyg/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include versioneer.py
include cugraph-pyg/_version.py
Loading