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

[QST] Parallel Execution of cugraph::bfs Using RAFT and OpenMP for Stream Management #2286

Open
Ibrahim25-ai opened this issue May 1, 2024 · 0 comments
Labels
question Further information is requested

Comments

@Ibrahim25-ai
Copy link

// Initialize RAFT resources and stream pool
raft::resources res;
raft::resource::sync_stream(res);
std::shared_ptrrmm::cuda_stream_pool stream_pool = std::make_sharedrmm::cuda_stream_pool(min_thread);
raft::device_resources resources(rmm::cuda_stream_per_thread, stream_pool);
//Creating graph in the gpu using cugraph
#pragma omp parallel num_threads(min_thread)
{
#pragma omp for
for (int i = 0; i < v_edgeWeight.size(); i++)
{
int threadNo = omp_get_thread_num();
auto stream_view = resources.get_stream_from_stream_pool(threadNo);
raft::handle_t local_handle(stream_view);

    // Passing local_handle and stream_view to a function that launches cugraph::BFS
}

}

Will this setup ensure that each BFS operation is parallely executed on the GPU ? Any potential pitfalls or performance issues I should be aware of with this approach?

I appreciate any insights or suggestions you might have. Thank you!

@Ibrahim25-ai Ibrahim25-ai added the question Further information is requested label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant