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

Refactoring into 23.08 #24

Merged
merged 48 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
9cc67d9
quick fix for CUDA 12
dongxuy04 Apr 14, 2023
d30bd8f
wholegraph code refactor first PR and RAPIDS CI
dongxuy04 May 10, 2023
0868ab6
added conda environment yml file
dongxuy04 May 10, 2023
22b18c9
renamed build_component.sh to build.sh and add cuGraphOps GATConv
dongxuy04 May 12, 2023
c758616
GitHub Action files
BradReesWork May 12, 2023
f1d4029
Merge branch 'branch-23.06' of https://github.com/dongxuy04/wholegrap…
BradReesWork May 12, 2023
469ebb8
remove duplicated GNN ops and kernels
dongxuy04 May 19, 2023
cac6796
add cpp ext option for pytorch and fix some github issues: 1. pytest …
dongxuy04 May 26, 2023
c4734a3
remove .gitlab-ci.yml
dongxuy04 May 26, 2023
ab5473e
move torch.utils.cpp_extension inside compile method to fix load befo…
dongxuy04 May 26, 2023
e8350ba
Merge pull request #16 from dongxuy04/branch-23.06
BradReesWork May 26, 2023
81fbac1
refactor random genertor cpu
hello-11 May 30, 2023
c565b66
rodo file structure
BradReesWork May 30, 2023
f8af2dd
rename raft_random_gen.cpp to raft_random_gen.cu and modified some da…
hello-11 May 31, 2023
d896c9c
adjusted cmake calls to new directory level
BradReesWork May 31, 2023
b6225ee
updates
BradReesWork May 31, 2023
1988835
Update build.sh
BradReesWork Jun 5, 2023
d39454a
Merge pull request #20 from hello-11/refactor_random_generator_op
BradReesWork Jun 5, 2023
f590e6c
fixed errors and removed bedug lines
BradReesWork Jun 7, 2023
a4900b0
Merge branch 'rapidsai:branch-23.08' into refactor_fix_1
BradReesWork Jun 7, 2023
49eea8a
update conflicts
BradReesWork Jun 7, 2023
4ad632e
Merge pull request #22 from BradReesWork/refactor_fix_1
BradReesWork Jun 9, 2023
427c4a4
fix codeowners
BradReesWork Jun 9, 2023
fc507d8
fix typo
BradReesWork Jun 9, 2023
5b2388e
Merge pull request #25 from BradReesWork/fix_2
BradReesWork Jun 9, 2023
29265b2
remove duplicated files, add more comments for docs and fixed RAPIDS …
dongxuy04 Jun 12, 2023
df2c1f9
Merge pull request #26 from dongxuy04/refactoring
BradReesWork Jun 12, 2023
b6490be
update permission
BradReesWork Jun 12, 2023
5a257a0
Merge pull request #27 from BradReesWork/fix_3
BradReesWork Jun 13, 2023
c141b90
update pr.yml
BradReesWork Jun 13, 2023
d442f64
add PR and issues to project
BradReesWork Jun 13, 2023
6fc99db
update top 23.08
BradReesWork Jun 13, 2023
47c50ad
Merge pull request #28 from BradReesWork/fix_4
BradReesWork Jun 13, 2023
83985af
Update test.yaml
BradReesWork Jun 13, 2023
96a7bf5
fix __init__ typo
dongxuy04 Jun 15, 2023
25211e6
Merge pull request #29 from dongxuy04/refactoring
BradReesWork Jun 20, 2023
a8a9990
Rename ops-bot.yaml to ops-bot.yml (#31)
BradReesWork Jun 20, 2023
2033505
Refactoring ci fixes (#32)
BradReesWork Jun 23, 2023
5f0924e
try to fix CI: Use System V API instead of POSIX API for host shared …
dongxuy04 Jun 28, 2023
b45b4f1
Delete ops-bot.yaml
BradReesWork Jun 28, 2023
d058288
Adding Docs (#35)
BradReesWork Jul 6, 2023
6a758cf
Update docs (#36)
dongxuy04 Jul 12, 2023
8275eb6
addressing comments (#39)
BradReesWork Jul 13, 2023
3111d1f
Remove libcugraphops dependency and add CUDA 12 CI support (#41)
dongxuy04 Jul 25, 2023
e5168c5
Build wheels for `pylibwholegraph` (#40)
tingyu66 Jul 25, 2023
73471f3
Clean up scripts for packaging (#42)
tingyu66 Jul 27, 2023
6d73391
Revise `update-version.sh` (#44)
tingyu66 Jul 28, 2023
8985989
address comments (#45)
tingyu66 Jul 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2023, NVIDIA CORPORATION.

[flake8]
filename = *.py, *.pyx, *.pxd, *.pxi
exclude = __init__.py, *.egg, build, docs, .git
force-check = True
max-line-length = 120
ignore =
# line break before binary operator
W503,
# whitespace before :
E203
per-file-ignores =
# Rules ignored only in Cython:
# E211: whitespace before '(' (used in multi-line imports)
# E225: Missing whitespace around operators (breaks cython casting syntax like <int>)
# E226: Missing whitespace around arithmetic operators (breaks cython pointer syntax like int*)
# E227: Missing whitespace around bitwise or shift operator (Can also break casting syntax)
# E275: Missing whitespace after keyword (Doesn't work with Cython except?)
# E402: invalid syntax (works for Python, not Cython)
# E999: invalid syntax (works for Python, not Cython)
# W504: line break after binary operator (breaks lines that end with a pointer)
*.pyx: E211, E225, E226, E227, E275, E402, E999, W504
*.pxd: E211, E225, E226, E227, E275, E402, E999, W504
*.pxi: E211, E225, E226, E227, E275, E402, E999, W504
30 changes: 30 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
# Order matters - match of highest importance goes last (last match wins)

#doc code owners
datasets/ @rapidsai/wholegraph-doc-codeowners
notebooks/ @rapidsai/wholegraph-doc-codeowners
docs/ @rapidsai/wholegraph-doc-codeowners
**/*.txt @rapidsai/wholegraph-doc-codeowners
**/*.md @rapidsai/wholegraph-doc-codeowners
**/*.rst @rapidsai/wholegraph-doc-codeowners
**/*.ipynb @rapidsai/wholegraph-doc-codeowners
**/*.pdf @rapidsai/wholegraph-doc-codeowners
**/*.png @rapidsai/wholegraph-doc-codeowners

#cpp code owners
cpp/ @rapidsai/wholegraph-cpp-codeowners

#python code owners
python/ @rapidsai/wholegraph-python-codeowners

#cmake code owners
**/CMakeLists.txt @rapidsai/wholegraph-cmake-codeowners
**/cmake/ @rapidsai/wholegraph-cmake-codeowners

#build/ops code owners
.github/ @rapidsai/ops-codeowners
ci/ @rapidsai/ops-codeowners
conda/ @rapidsai/ops-codeowners
**/Dockerfile @rapidsai/ops-codeowners
**/.dockerignore @rapidsai/ops-codeowners
37 changes: 37 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# https://github.com/actions/labeler#common-examples
# Adapted from https://github.com/rapidsai/wholegraph/blob/main/.github/CODEOWNERS
# Labels culled from https://github.com/rapidsai/cugraph/labels

python:
- 'python/**'
- 'notebooks/**'

benchmarks:
- 'benchmarks/**'

doc:
- 'docs/**'
- '**/*.md'
- 'datasets/**'
- 'notebooks/**'
- '**/*.txt'
- '**/*.rst'
- '**/*.ipynb'
- '**/*.pdf'
- '**/*.png'

datasets:
- 'datasets/**'

WholeGraph:
- 'cpp/**'

CMake:
- '**/CMakeLists.txt'
- '**/cmake/**'

ci:
- 'ci/**'

conda:
- 'conda/**'
19 changes: 19 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Add new issue/PR to project

on:
issues:
types:
- opened
pull_request_target:
types:
- opened

jobs:
add-to-project:
name: Add issue or PR to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.3.0
with:
project-url: https://github.com/orgs/rapidsai/projects/47
github-token: ${{ secrets.ADD_TO_PROJECT_GITHUB_TOKEN }}
85 changes: 85 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: build

on:
push:
branches:
- "branch-*"
tags:
- v[0-9][0-9].[0-9][0-9].[0-9][0-9]
workflow_dispatch:
inputs:
branch:
required: true
type: string
date:
required: true
type: string
sha:
required: true
type: string
build_type:
type: string
default: nightly

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
cpp-build:
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-build.yaml@branch-23.08
with:
build_type: ${{ inputs.build_type || 'branch' }}
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
build_script: ci/build_cpp.sh
python-build:
needs: [cpp-build]
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-build.yaml@branch-23.08
with:
build_type: ${{ inputs.build_type || 'branch' }}
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
build_script: ci/build_python.sh
docs-build:
if: ${{ startsWith(github.ref, 'refs/heads/branch-') }}
needs: [python-build]
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.08
with:
build_type: branch
node_type: "gpu-v100-latest-1"
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
BradReesWork marked this conversation as resolved.
Show resolved Hide resolved
upload-conda:
needs: [cpp-build, python-build]
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/conda-upload-packages.yaml@branch-23.08
with:
build_type: ${{ inputs.build_type || 'branch' }}
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
wheel-build-pylibwholegraph:
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-build.yaml@branch-23.08
with:
build_type: ${{ inputs.build_type || 'branch' }}
branch: ${{ inputs.branch }}
sha: ${{ inputs.sha }}
date: ${{ inputs.date }}
wheel-publish-pylibwholegraph:
needs: wheel-build-pylibwholegraph
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-publish.yaml@branch-23.08
with:
build_type: ${{ inputs.build_type || 'branch' }}
branch: ${{ inputs.branch }}
sha: ${{ inputs.sha }}
date: ${{ inputs.date }}
package-name: pylibwholegraph
78 changes: 78 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: pr

on:
push:
branches:
- "pull-request/[0-9]+"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pr-builder:
needs:
- checks
- conda-cpp-build
- conda-cpp-tests
- conda-python-build
- conda-python-tests
- docs-build
- wheel-build-pylibwholegraph
- wheel-test-pylibwholegraph
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/pr-builder.yaml@branch-23.08
checks:
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/checks.yaml@branch-23.08
with:
enable_check_generated_files: false
conda-cpp-build:
needs: checks
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-build.yaml@branch-23.08
with:
build_type: pull-request
node_type: cpu16
conda-cpp-tests:
needs: conda-cpp-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-tests.yaml@branch-23.08
with:
build_type: pull-request
conda-python-build:
needs: conda-cpp-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-build.yaml@branch-23.08
with:
build_type: pull-request
conda-python-tests:
needs: conda-python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-tests.yaml@branch-23.08
with:
build_type: pull-request
docs-build:
needs: conda-python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.08
with:
build_type: pull-request
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
BradReesWork marked this conversation as resolved.
Show resolved Hide resolved
wheel-build-pylibwholegraph:
needs: checks
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-build.yaml@branch-23.08
with:
build_type: pull-request
script: ci/build_wheel.sh
wheel-test-pylibwholegraph:
needs: wheel-build-pylibwholegraph
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-test.yaml@branch-23.08
with:
build_type: pull-request
script: ci/test_wheel.sh
matrix_filter: map(select(.ARCH == "amd64"))
42 changes: 42 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: test

on:
workflow_dispatch:
inputs:
branch:
required: true
type: string
date:
required: true
type: string
sha:
required: true
type: string

jobs:
conda-cpp-tests:
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-tests.yaml@branch-23.08
with:
build_type: nightly
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
conda-pytorch-tests:
BradReesWork marked this conversation as resolved.
Show resolved Hide resolved
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-tests.yaml@branch-23.08
with:
build_type: nightly
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
wheel-tests-pylibwholegraph:
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-test.yaml@branch-23.08
with:
build_type: nightly
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
script: ci/test_wheel.sh
matrix_filter: map(select(.ARCH == "amd64"))
21 changes: 14 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Common
__pycache__
build*/
.pytest_cache/
*.pyc
*.a
*.o
Expand All @@ -14,6 +16,9 @@ __pycache__
*~
DartConfiguration.tcl
.DS_Store
*.egg-info
*.egg
env.yaml

# Unit test / coverage reports
htmlcov/
Expand Down Expand Up @@ -69,14 +74,16 @@ cmake-build-debug/
## Doxygen
cpp/doxygen/html


# Sphinx docs & build artifacts
docs/wholegraph/source/api_docs/api/*

# others
local_scripts/
build
*pyc
compile_commands.json
docker_run.bash
.devcontainer
.conda/
.conda-bld/
.ipynb_checkpoints/
test-results/
_skbuild/
cpp/.idea/
cpp/cmake-build-debug/
pylibwholegraph/.idea/
pylibwholegraph/cmake-build-debug/
Loading