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

TL/NCCL: lazy init nccl comm #851

Merged

Conversation

Sergei-Lebedev
Copy link
Contributor

What

Lazily initialize TL NCCL on first CUDA collective.

Why ?

Both NCCL and CUDA require CUDA devices to be set before team create. In MPI workloads it's not always possible since MPI_Init creates UCC team and to set device we need to know rank and local rank.

replaces #758

src/components/tl/ucc_tl.c Outdated Show resolved Hide resolved
src/components/tl/ucc_tl.c Show resolved Hide resolved
src/components/tl/nccl/tl_nccl_team.c Show resolved Hide resolved
src/components/tl/nccl/tl_nccl_team.c Outdated Show resolved Hide resolved
src/components/tl/nccl/tl_nccl.c Outdated Show resolved Hide resolved
src/components/tl/nccl/tl_nccl_coll.c Outdated Show resolved Hide resolved
@Sergei-Lebedev Sergei-Lebedev force-pushed the topic/tl_nccl_lazy_init branch from 016c3db to 9d4d420 Compare December 15, 2023 16:07
@Sergei-Lebedev Sergei-Lebedev force-pushed the topic/tl_nccl_lazy_init branch from 9d4d420 to c2aa99f Compare January 3, 2024 09:34
@Sergei-Lebedev Sergei-Lebedev merged commit 5142705 into openucx:master Jan 4, 2024
11 checks passed
@Sergei-Lebedev Sergei-Lebedev deleted the topic/tl_nccl_lazy_init branch January 4, 2024 06:43
janjust pushed a commit to janjust/ucc that referenced this pull request Jan 31, 2024
* TL/NCCL: lazy init nccl comm

* REVIEW: fix review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants