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

Feature request: CUDA support #94

Open
njzjz opened this issue Apr 19, 2024 · 2 comments
Open

Feature request: CUDA support #94

njzjz opened this issue Apr 19, 2024 · 2 comments
Labels

Comments

@njzjz
Copy link
Member

njzjz commented Apr 19, 2024

Comment:

Support CUDA.

mpich README contains documentation:

GPU support
***********

GPU support is automatically enabled if CUDA, ZE, or HIP runtime is
detected during configure. To specify where your GPU runtime is
installed, use:

  --with-cuda=<path>  or --with-ze=<path> or --with-hip=<path>

If the lib/ and include/ are not in the same path, both can be specified
separately, for example:

  --with-cuda-include= and --with-cuda-lib=

In addition, GPU support can be explicitly disabled by using:

  --without-cuda  or  --without-ze or --without-hip

If desirable, GPU support can be disabled during runtime by setting
environment variable MPIR_CVAR_ENABLE_GPU=0. This may help avoid the GPU
initialization and detection overhead for non-GPU applications.
@njzjz njzjz added the question label Apr 19, 2024
@jakirkham
Copy link
Member

Likely we can take the same approach here as was taken with OpenMPI

@minrk
Copy link
Member

minrk commented Dec 10, 2024

I don't think that mpich loads optional components as DSOs like openmpi, so I think we'd at least need a cuda build and a non-cuda build to avoid a dependency on libcudart even when unused, since it will still need to resolve the symbols, even if they aren't called, but we can see.

I had hoped that one mpi implementation with cuda support would be enough for folks, since it is such a pain to maintain and nearly impossible to test.

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

No branches or pull requests

3 participants