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

pt: fix compile error when use intel mpi #3919

Merged
merged 10 commits into from
Jul 2, 2024
8 changes: 8 additions & 0 deletions source/op/pt/comm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ class Border : public torch::autograd::Function<Border> {
int version, subversion;
MPI_Get_version(&version, &subversion);
if (version >= 4) {
#ifdef I_MPI_VERSION
cuda_aware = 0;
#elif
CaRoLZhangxy marked this conversation as resolved.
Show resolved Hide resolved
cuda_aware = MPIX_Query_cuda_support();
#endif
CaRoLZhangxy marked this conversation as resolved.
Show resolved Hide resolved
} else {
cuda_aware = 0;
}
Expand Down Expand Up @@ -215,7 +219,11 @@ class Border : public torch::autograd::Function<Border> {
int version, subversion;
MPI_Get_version(&version, &subversion);
if (version >= 4) {
#ifdef I_MPI_VERSION
cuda_aware = 0;
#elif
cuda_aware = MPIX_Query_cuda_support();
#endif
} else {
cuda_aware = 0;
}
Expand Down
Loading