Skip to content

Commit

Permalink
test: use macro to protect ch4:ofi only tests
Browse files Browse the repository at this point in the history
When MPICH_CH4_OFI is not define, the test reduce to a dummy test.
  • Loading branch information
hzhou committed Apr 29, 2022
1 parent 920e69b commit f39b184
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/mpi/impls/mpich/threads/pt2pt/multinic_infohints.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
#include <stdio.h>
#include <string.h>

/* This test only works for ch4:ofi */
#ifndef MPICH_CH4_OFI
int main(int argc, char *argv[])
{
int errs = 0;
MTest_Init(&argc, &argv);
MTest_Finalize(errs);
return MTestReturnValue(errs);
}
#else

#define MAX_NICS_SUPPORTED 8

/* Multinic Support: Using pref_close_nic user info hint set */
Expand Down Expand Up @@ -268,3 +279,4 @@ int main(int argc, char *argv[])
MTest_Finalize(errs);
return MTestReturnValue(errs);
}
#endif /* MPICH_CH4_OFI */

0 comments on commit f39b184

Please sign in to comment.