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

Exploring CUDA-Aware MPI Transmission in cuda-python #50

Closed
Ed4everU opened this issue Jul 24, 2023 · 4 comments
Closed

Exploring CUDA-Aware MPI Transmission in cuda-python #50

Ed4everU opened this issue Jul 24, 2023 · 4 comments

Comments

@Ed4everU
Copy link

Hi Developers,

As a newcomer to cuda-python, I'm eager to learn how to implement CUDA-aware MPI transmission. I'd appreciate any guidance or resources on this topic. Thank you!

@leofang
Copy link
Member

leofang commented Jul 24, 2023

mpi4py already supports this since v3.1.0, I am not sure how it is relevant for CUDA Python? CUDA Python is unaware of MPI and it shouldn't be.

@Ed4everU
Copy link
Author

Ah, I believe I understand now. So, if I allocate the objects on the CUDA device and transmit them using MPI, the mpi4py library will automatically handle the device-to-device transmission, isn't it?

@leofang
Copy link
Member

leofang commented Jul 25, 2023

It'd be handled by the MPI library, not mpi4py which just forwards the pointers to the underlying MPI.

@Ed4everU
Copy link
Author

Thank you so much for your informative answer. I see it clearly now. 😁

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

2 participants