From f39b1841d3841c343169424662d2c9bfb49431f2 Mon Sep 17 00:00:00 2001 From: Hui Zhou Date: Thu, 28 Apr 2022 20:50:40 -0500 Subject: [PATCH] test: use macro to protect ch4:ofi only tests When MPICH_CH4_OFI is not define, the test reduce to a dummy test. --- .../impls/mpich/threads/pt2pt/multinic_infohints.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/mpi/impls/mpich/threads/pt2pt/multinic_infohints.c b/test/mpi/impls/mpich/threads/pt2pt/multinic_infohints.c index a0357629806..4cfc90a6295 100644 --- a/test/mpi/impls/mpich/threads/pt2pt/multinic_infohints.c +++ b/test/mpi/impls/mpich/threads/pt2pt/multinic_infohints.c @@ -10,6 +10,17 @@ #include #include +/* 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 */ @@ -268,3 +279,4 @@ int main(int argc, char *argv[]) MTest_Finalize(errs); return MTestReturnValue(errs); } +#endif /* MPICH_CH4_OFI */