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

Add the multi-device client-server example #10438

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

SeyedMir
Copy link
Contributor

What?

Add a UCP client-server example that uses multiple GPUs in the client and servers.

Why?

To show the hurdles of using UCX with a multiple-GPUs-per-process usage model.

How?

Use a separate UCP context for each GPU.

@@ -0,0 +1,1215 @@
/**
* Copyright (c) NVIDIA CORPORATION & AFFILIATES, 2018. ALL RIGHTS RESERVED.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2025?

*/

/*
* UCP client - server example utility
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this needs to be updated?
Also ucp_client_server -> ucp_client_server_multi_dev

* '-p' option and should be used on both sides. The default port to use is
* 13337.
*/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is mostly identical to ucp_client_server, is there a way to reuse common base?
Maybe one option is to extend ucp_client_server with one more option?

@SeyedMir SeyedMir force-pushed the multi-dev-multi-ctx-example branch from 116ea40 to c18ea67 Compare January 30, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants