Skip to content

Commit 7d7eeee

Browse files
committed
Allow testsuite build with MPI2_THREADS to run with 0 additional threads.
1 parent 5e64e4d commit 7d7eeee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mpi_test_suite.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int usage (void)
121121
"num_values:\tone (or more) numbers of values to communicate (default:%d)\n"
122122
"report:\t\tlevel of detail for tests being run, see -l (default:SUMMARY)\n"
123123
"execution_mode:\tlevel of correctness testing, tests to run and internal tests, see -l (default:RELAXED)\n"
124-
"num_threads:\tnumber of threads to execute the tests (default:no threads)\n"
124+
"num_threads:\tnumber of additional threads to execute the tests (default: 0)\n"
125125
"\n"
126126
"All multiple test/comm/datatype-names must be comma-separated.\n"
127127
"Names are not case-sensitive, due to spaces in names, proper quoting should be used.\n"
@@ -560,7 +560,7 @@ int main (int argc, char * argv[])
560560
}
561561

562562
#ifdef HAVE_MPI2_THREADS
563-
if (num_threads <= 0)
563+
if (num_threads < 0)
564564
{
565565
printf ("Error: Number of threads must be greater than 0 (given %d)\n", num_threads);
566566
usage ();

0 commit comments

Comments
 (0)