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

Address a corner case when establishing p2p access #2457

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

findmyway
Copy link
Contributor

This PR is mainly to fix the issue I reported here: JuliaGPU/NCCL.jl#58

I think a better approach may be adding locks to peer_access?

lib/cudadrv/context.jl Outdated Show resolved Hide resolved
@maleadt
Copy link
Member

maleadt commented Aug 6, 2024

I take it you were running with multiple threads? A lock would be useful then, but it can't hurt handling this corner case gracefully too.

@maleadt maleadt added the enhancement New feature or request label Aug 6, 2024
Co-authored-by: Tim Besard <tim.besard@gmail.com>
@findmyway
Copy link
Contributor Author

I take it you were running with multiple threads?

No, I didn't run with multiple threads.


I tried twice and with the fix here I can see two warnings printed.

@maleadt maleadt merged commit 69043ee into JuliaGPU:master Aug 8, 2024
1 check passed
@maleadt
Copy link
Member

maleadt commented Aug 8, 2024

Huh, I'm not entirely sure how this happens then. In any case, thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants