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

Call hipInit before MPI_Init. #1629

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions hoomd/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ char env_enable_mpi_cuda[] = "MV2_USE_CUDA=1";
//! Initialize the MPI environment
int initialize_mpi()
{
#if defined(ENABLE_HIP) && defined(__HIP_PLATFORM_HCC__)
hipInit(0);
#endif

// initialize MPI if it has not been initialized by another program
int external_init = 0;
MPI_Initialized(&external_init);
Expand Down