Skip to content

Commit

Permalink
Merge branch 'branch-24.10' into branch-24.08_RandomWalks
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Cornett authored Aug 30, 2024
2 parents 35cd032 + d5154d5 commit c88144b
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
hooks:
- id: black
language_version: python3
args: [--target-version=py39]
args: [--target-version=py310]
files: ^(python/.*|benchmarks/.*)$
exclude: ^python/nx-cugraph/
- repo: https://github.com/PyCQA/flake8
Expand Down
4 changes: 1 addition & 3 deletions conda/recipes/nx-cugraph/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ source:

build:
number: {{ GIT_DESCRIBE_NUMBER }}
build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: py{{ py_version }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
string: py{{ py_version }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}

requirements:
host:
Expand Down
10 changes: 5 additions & 5 deletions cpp/examples/developers/graph_operations/graph_operations.cu
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ create_graph(raft::handle_t const& handle,
//

if (multi_gpu) {
std::tie(d_edge_srcs, d_edge_dsts, d_edge_wgts, std::ignore, std::ignore) =
std::tie(d_edge_srcs, d_edge_dsts, d_edge_wgts, std::ignore, std::ignore, std::ignore) =
cugraph::shuffle_external_edges<vertex_t, vertex_t, weight_t, int32_t>(handle,
std::move(d_edge_srcs),
std::move(d_edge_dsts),
Expand Down Expand Up @@ -215,10 +215,10 @@ void perform_example_graph_operations(
graph_view);

cugraph::update_edge_src_property(
handle, graph_view, vertex_weights.begin(), src_vertex_weights_cache);
handle, graph_view, vertex_weights.begin(), src_vertex_weights_cache.mutable_view());

cugraph::update_edge_dst_property(
handle, graph_view, vertex_weights.begin(), dst_vertex_weights_cache);
handle, graph_view, vertex_weights.begin(), dst_vertex_weights_cache.mutable_view());

rmm::device_uvector<result_t> weighted_averages(
size_of_the_vertex_partition_assigned_to_this_process, handle.get_stream());
Expand Down Expand Up @@ -259,10 +259,10 @@ void perform_example_graph_operations(
graph_view);

cugraph::update_edge_src_property(
handle, graph_view, vertex_weights.begin(), src_vertex_weights_cache);
handle, graph_view, vertex_weights.begin(), src_vertex_weights_cache.mutable_view());

cugraph::update_edge_dst_property(
handle, graph_view, vertex_weights.begin(), dst_vertex_weights_cache);
handle, graph_view, vertex_weights.begin(), dst_vertex_weights_cache.mutable_view());

rmm::device_uvector<result_t> weighted_averages(
size_of_the_vertex_partition_assigned_to_this_process, handle.get_stream());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ create_graph(raft::handle_t const& handle,
//

if (multi_gpu) {
std::tie(d_edge_srcs, d_edge_dsts, d_edge_wgts, std::ignore, std::ignore) =
std::tie(d_edge_srcs, d_edge_dsts, d_edge_wgts, std::ignore, std::ignore, std::ignore) =
cugraph::shuffle_external_edges<vertex_t, vertex_t, weight_t, int32_t>(handle,
std::move(d_edge_srcs),
std::move(d_edge_dsts),
Expand Down
15 changes: 12 additions & 3 deletions cpp/examples/users/multi_gpu_application/mg_graph_algorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ create_graph(raft::handle_t const& handle,
//

if (multi_gpu) {
std::tie(d_edge_srcs, d_edge_dsts, d_edge_wgts, std::ignore, std::ignore) =
std::tie(d_edge_srcs, d_edge_dsts, d_edge_wgts, std::ignore, std::ignore, std::ignore) =
cugraph::shuffle_external_edges<vertex_t, vertex_t, weight_t, int32_t>(handle,
std::move(d_edge_srcs),
std::move(d_edge_dsts),
Expand Down Expand Up @@ -248,9 +248,8 @@ void run_graph_algorithms(
std::cout);
}

int main(int argc, char** argv)
void run_tests()
{
initialize_mpi_and_set_device(argc, argv);
std::unique_ptr<raft::handle_t> handle = initialize_mg_handle();

//
Expand Down Expand Up @@ -279,6 +278,7 @@ int main(int argc, char** argv)
std::move(std::make_optional(edge_wgts)),
renumber,
is_symmetric);

// Non-owning view of the graph object
auto graph_view = graph.view();

Expand All @@ -292,5 +292,14 @@ int main(int argc, char** argv)
run_graph_algorithms<vertex_t, edge_t, weight_t, store_transposed, multi_gpu>(
*handle, graph_view, edge_weight_view);

handle.release();
}

int main(int argc, char** argv)
{
initialize_mpi_and_set_device(argc, argv);

run_tests();

RAFT_MPI_TRY(MPI_Finalize());
}
3 changes: 2 additions & 1 deletion cpp/include/cugraph/graph_functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,8 @@ std::tuple<rmm::device_uvector<vertex_t>,
rmm::device_uvector<vertex_t>,
std::optional<rmm::device_uvector<weight_t>>,
std::optional<rmm::device_uvector<edge_t>>,
std::optional<rmm::device_uvector<edge_type_t>>>
std::optional<rmm::device_uvector<edge_type_t>>,
std::vector<size_t>>
shuffle_external_edges(raft::handle_t const& handle,
rmm::device_uvector<vertex_t>&& edge_srcs,
rmm::device_uvector<vertex_t>&& edge_dsts,
Expand Down
5 changes: 2 additions & 3 deletions docs/cugraph/source/installation/source_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ __Compilers:__
* `nvcc` version 11.5+

__CUDA:__
* CUDA 11.2+
* NVIDIA driver 470.42.01 or newer
* CUDA 11.8+
* NVIDIA GPU, Volta architecture or later, with [compute capability](https://developer.nvidia.com/cuda-gpus) 7.0+

Further details and download links for these prerequisites are available on the
Expand Down Expand Up @@ -178,7 +177,7 @@ Run either the C++ or the Python tests with datasets
make test
```

Note: This conda installation only applies to Linux and Python versions 3.8/3.11.
Note: This conda installation only applies to Linux and Python versions 3.10 and 3.11.

### (OPTIONAL) Set environment variable on activation

Expand Down
5 changes: 2 additions & 3 deletions docs/cugraph/source/tutorials/cugraph_notebooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ Running the example in these notebooks requires:
* Download via Docker, Conda (See [__Getting Started__](https://rapids.ai/start.html))

* cuGraph is dependent on the latest version of cuDF. Please install all components of RAPIDS
* Python 3.8+
* A system with an NVIDIA GPU: Pascal architecture or better
* Python 3.10+
* A system with an NVIDIA GPU: Volta architecture or newer
* CUDA 11.4+
* NVIDIA driver 450.51+

## Copyright

Expand Down
5 changes: 2 additions & 3 deletions docs/cugraph/source/wholegraph/installation/source_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ __Compiler__:

__CUDA__:
* CUDA 11.8+
* NVIDIA driver 450.80.02+
* Pascal architecture or better
* Volta architecture or better

You can obtain CUDA from [https://developer.nvidia.com/cuda-downloads](https://developer.nvidia.com/cuda-downloads).

Expand Down Expand Up @@ -177,7 +176,7 @@ Run either the C++ or the Python tests with datasets
```
Note: This conda installation only applies to Linux and Python versions 3.8/3.10.
Note: This conda installation only applies to Linux and Python versions 3.10 and 3.11.
## Creating documentation
Expand Down
5 changes: 2 additions & 3 deletions notebooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ Running the example in these notebooks requires:
* Download via Docker, Conda (See [__Getting Started__](https://rapids.ai/start.html))

* cuGraph is dependent on the latest version of cuDF. Please install all components of RAPIDS
* Python 3.8+
* A system with an NVIDIA GPU: Pascal architecture or better
* Python 3.10+
* A system with an NVIDIA GPU: Volta architecture or newer
* CUDA 11.4+
* NVIDIA driver 450.51+

### QuickStart

Expand Down
2 changes: 1 addition & 1 deletion python/nx-cugraph/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py39-plus]
args: [--py310-plus]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
Expand Down

0 comments on commit c88144b

Please sign in to comment.