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

Use input rng_state rather than creating a local one #4168

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Changes from all commits
Commits
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
6 changes: 2 additions & 4 deletions cpp/src/community/detail/refine_impl.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
* Copyright (c) 2023-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.
Expand Down Expand Up @@ -504,10 +504,8 @@ refine_clustering(
//
// Decide best/positive move for each vertex
//
unsigned seed = std::chrono::system_clock::now().time_since_epoch().count();
raft::random::RngState rng_state(seed);
raft::random::DeviceState<raft::random::PCGenerator> device_state(rng_state);

raft::random::DeviceState<raft::random::PCGenerator> device_state(rng_state);
auto gain_and_dst_output_pairs = allocate_dataframe_buffer<thrust::tuple<weight_t, vertex_t>>(
graph_view.local_vertex_partition_range_size(), handle.get_stream());

Expand Down
Loading