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

Can two AllReduce operations run in parallel using different non-blocking cudaStreams? #1262

Open
lidoo233 opened this issue Apr 23, 2024 · 0 comments

Comments

@lidoo233
Copy link

lidoo233 commented Apr 23, 2024

I learned that using non-blocking cudaStreams can achieve kernel concurrency. I want to know if it can achieve kernel parallelism.
Through Nsys analysis, I found that even if the collective communication operations using different non-block cudaStreams are not run in parallel in the kernel.
allReduce
So, can two AllReduce operations run in parallel using different non-blocking cudaStreams?
I've read the similar issues like #195 #217 #315 ,but I'm still don't know the answer.
Here is part of my code.
cudaStream_t stream1, stream2;
CUDACHECK(cudaStreamCreateWithFlags(stream1, cudaStreamNonBlocking));
CUDACHECK(cudaStreamCreateWithFlags(stream2, cudaStreamNonBlocking));
ncclAllReduce((const void*)buffer1, (void*)buffer1, size, ncclUint64, ncclSum, comm, stream1);
ncclAllReduce((const void*)buffer2, (void*)buffer2, size, ncclUint64, ncclSum, comm, stream2);

Tasks

No tasks being tracked yet.
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

No branches or pull requests

1 participant