Skip to content

Feat/nccl #766

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Feat/nccl #766

wants to merge 4 commits into from

Conversation

Use-AIrs
Copy link

@Use-AIrs Use-AIrs commented Jul 4, 2025

So started with a NcclDevice behind a nccl feature flag. With some CudaDevice implementations which come with the feature to make it easier to set up groups.

CudaDevice is needed to be passed trough client so it comes trough .info() now with the feature on.

Next comes NcclOp with NcclOpBuilder. NcclOpBuilder will first translate the input Handel(s) to get ptr und size. Then it can be executed, which will build a cudarc::nccl::sys::ncclComm_t, then starts the nccl group executes Futures on pointers step by step to then stop the nccl group. At least thats the plan for now.

@Use-AIrs
Copy link
Author

Use-AIrs commented Jul 4, 2025

No Future here, that would be a overcomplicated abstraction ^^

devices
}

pub fn linked_groups(split: Vec<f64>) -> Vec<Self> {
Copy link
Member

Choose a reason for hiding this comment

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

What is a split? Maybe add some docs in each public functions to help users

Copy link
Author

Choose a reason for hiding this comment

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

In this Context you get a f64 for each device group you want do build. Each group gets devices assigned depending on the proportion of each f64 compared to the sum of Vec...

Just asking early on that frequently, because i want to get a felling if getting deeper in the code gets backslash, sorry for not pointing that out.
Since you did not comment the use of using CudaRuntime::Info i assume that using existing code is allowed as long as its behind the feature flag ...

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