Skip to content

Commit ab39bd8

Browse files
committed
HLRS/mpi_test_suite: Detect some more MPI implementations.
1 parent a8783cf commit ab39bd8

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

compile_info.h

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,21 @@ int get_compiler_info( char **info_str ) {
5555

5656
#if defined(MPI_VERSION)
5757

58-
59-
int get_mpi_info( char **info_str ) {
60-
/* Intel MPI */
61-
/* FIXME */
62-
63-
/* MVAPICH2 */
58+
int get_mpi_info(char **info_str) {
6459
#if defined(MVAPICH2)
65-
sprintf( *info_str, "MVAPICH2" );
66-
67-
/* Open MPI */
60+
sprintf(*info_str, "MVAPICH2");
6861
#elif defined(OPEN_MPI)
69-
sprintf( *info_str, "Open MPI" );
70-
71-
/* unknown */
62+
sprintf(*info_str, "Open MPI");
63+
#elif defined(I_MPI_VERSION)
64+
sprintf(*info_str, "Intel MPI");
65+
#elif defined(CRAY_MPI)
66+
sprintf(*info_str, "Cray MPI");
67+
#elif defined(MPICH)
68+
sprintf(*info_str, "MPICH");
7269
#else
73-
sprintf( *info_str, "unknown" );
70+
sprintf(*info_str, "unknown");
7471
#endif
75-
76-
return 0;
72+
return 0;
7773
}
7874

7975
#endif

0 commit comments

Comments
 (0)