-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'branch-24.02' into perf-testing-dgl
- Loading branch information
Showing
37 changed files
with
1,310 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,3 +173,22 @@ jobs: | |
sha: ${{ inputs.sha }} | ||
date: ${{ inputs.date }} | ||
package-name: cugraph-pyg | ||
wheel-build-cugraph-equivariant: | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: ${{ inputs.build_type || 'branch' }} | ||
branch: ${{ inputs.branch }} | ||
sha: ${{ inputs.sha }} | ||
date: ${{ inputs.date }} | ||
script: ci/build_wheel_cugraph-equivariant.sh | ||
wheel-publish-cugraph-equivariant: | ||
needs: wheel-build-cugraph-equivariant | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: ${{ inputs.build_type || 'branch' }} | ||
branch: ${{ inputs.branch }} | ||
sha: ${{ inputs.sha }} | ||
date: ${{ inputs.date }} | ||
package-name: cugraph-equivariant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ jobs: | |
- wheel-tests-cugraph-dgl | ||
- wheel-build-cugraph-pyg | ||
- wheel-tests-cugraph-pyg | ||
- wheel-build-cugraph-equivariant | ||
- wheel-tests-cugraph-equivariant | ||
- devcontainer | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
|
@@ -161,6 +163,20 @@ jobs: | |
build_type: pull-request | ||
script: ci/test_wheel_cugraph-pyg.sh | ||
matrix_filter: map(select(.ARCH == "amd64" and .CUDA_VER == "11.8.0")) | ||
wheel-build-cugraph-equivariant: | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: pull-request | ||
script: ci/build_wheel_cugraph-equivariant.sh | ||
wheel-tests-cugraph-equivariant: | ||
needs: wheel-build-cugraph-equivariant | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: pull-request | ||
script: ci/test_wheel_cugraph-equivariant.sh | ||
matrix_filter: map(select(.ARCH == "amd64")) | ||
devcontainer: | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,3 +75,12 @@ jobs: | |
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
script: ci/test_wheel_cugraph-pyg.sh | ||
wheel-tests-cugraph-equivariant: | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: nightly | ||
branch: ${{ inputs.branch }} | ||
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
script: ci/test_wheel_cugraph-equivariant.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
./ci/build_wheel.sh cugraph-equivariant python/cugraph-equivariant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
set -eoxu pipefail | ||
|
||
package_name="cugraph-equivariant" | ||
package_dir="python/cugraph-equivariant" | ||
|
||
python_package_name=$(echo ${package_name}|sed 's/-/_/g') | ||
|
||
mkdir -p ./dist | ||
RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" | ||
|
||
# use 'ls' to expand wildcard before adding `[extra]` requires for pip | ||
RAPIDS_PY_WHEEL_NAME="${package_name}_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./dist | ||
# pip creates wheels using python package names | ||
python -m pip install $(ls ./dist/${python_package_name}*.whl)[test] | ||
|
||
|
||
PKG_CUDA_VER="$(echo ${CUDA_VERSION} | cut -d '.' -f1,2 | tr -d '.')" | ||
PKG_CUDA_VER_MAJOR=${PKG_CUDA_VER:0:2} | ||
if [[ "${PKG_CUDA_VER_MAJOR}" == "12" ]]; then | ||
PYTORCH_CUDA_VER="121" | ||
else | ||
PYTORCH_CUDA_VER=$PKG_CUDA_VER | ||
fi | ||
PYTORCH_URL="https://download.pytorch.org/whl/cu${PYTORCH_CUDA_VER}" | ||
|
||
rapids-logger "Installing PyTorch and e3nn" | ||
rapids-retry python -m pip install torch --index-url ${PYTORCH_URL} | ||
rapids-retry python -m pip install e3nn | ||
|
||
python -m pytest python/cugraph-equivariant/cugraph_equivariant/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
# This assumes the script is executed from the root of the repo directory | ||
|
||
./build.sh cugraph-equivariant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
{% set version = environ['RAPIDS_PACKAGE_VERSION'].lstrip('v') + environ.get('VERSION_SUFFIX', '') %} | ||
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %} | ||
{% set py_version = environ['CONDA_PY'] %} | ||
{% set date_string = environ['RAPIDS_DATE_STRING'] %} | ||
|
||
package: | ||
name: cugraph-equivariant | ||
version: {{ version }} | ||
|
||
source: | ||
path: ../../.. | ||
|
||
build: | ||
number: {{ GIT_DESCRIBE_NUMBER }} | ||
build: | ||
number: {{ GIT_DESCRIBE_NUMBER }} | ||
string: py{{ py_version }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
|
||
requirements: | ||
host: | ||
- python | ||
run: | ||
- pylibcugraphops ={{ minor_version }} | ||
- python | ||
|
||
tests: | ||
imports: | ||
- cugraph_equivariant | ||
|
||
about: | ||
home: https://rapids.ai/ | ||
dev_url: https://github.com/rapidsai/cugraph | ||
license: Apache-2.0 | ||
license_file: ../../../LICENSE | ||
summary: GPU-accelerated equivariant convolutional layers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* Copyright (c) 2024, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#pragma once | ||
|
||
#include <cugraph/edge_partition_device_view.cuh> | ||
|
||
namespace cugraph { | ||
|
||
namespace detail { | ||
|
||
template <typename GraphViewType, | ||
typename EdgePartitionSrcValueInputWrapper, | ||
typename EdgePartitionDstValueInputWrapper, | ||
typename EdgePartitionEdgeValueInputWrapper, | ||
typename EdgeOp> | ||
struct call_e_op_t { | ||
edge_partition_device_view_t<typename GraphViewType::vertex_type, | ||
typename GraphViewType::edge_type, | ||
GraphViewType::is_multi_gpu> const& edge_partition{}; | ||
EdgePartitionSrcValueInputWrapper const& edge_partition_src_value_input{}; | ||
EdgePartitionDstValueInputWrapper const& edge_partition_dst_value_input{}; | ||
EdgePartitionEdgeValueInputWrapper const& edge_partition_e_value_input{}; | ||
EdgeOp const& e_op{}; | ||
typename GraphViewType::vertex_type major{}; | ||
typename GraphViewType::vertex_type major_offset{}; | ||
typename GraphViewType::vertex_type const* indices{nullptr}; | ||
typename GraphViewType::edge_type edge_offset{}; | ||
|
||
__device__ auto operator()(typename GraphViewType::edge_type i) const | ||
{ | ||
auto minor = indices[i]; | ||
auto minor_offset = edge_partition.minor_offset_from_minor_nocheck(minor); | ||
auto src = GraphViewType::is_storage_transposed ? minor : major; | ||
auto dst = GraphViewType::is_storage_transposed ? major : minor; | ||
auto src_offset = GraphViewType::is_storage_transposed ? minor_offset : major_offset; | ||
auto dst_offset = GraphViewType::is_storage_transposed ? major_offset : minor_offset; | ||
return e_op(src, | ||
dst, | ||
edge_partition_src_value_input.get(src_offset), | ||
edge_partition_dst_value_input.get(dst_offset), | ||
edge_partition_e_value_input.get(edge_offset + i)); | ||
} | ||
}; | ||
|
||
} // namespace detail | ||
|
||
} // namespace cugraph |
Oops, something went wrong.