Pārlūkot izejas kodu

port r18172 from 1.2: make mpi cholesky recognize --help

Samuel Thibault 8 gadi atpakaļ
vecāks
revīzija
fd94a6e363

+ 2 - 2
mpi/examples/matrix_decomposition/mpi_decomposition_params.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  *
- * Copyright (C) 2009, 2010, 2015  Université de Bordeaux
+ * Copyright (C) 2009, 2010, 2015-2016  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2012, 2013, 2015  CNRS
  * Copyright (C) 2010, 2011, 2012, 2013, 2015  CNRS
  *
  *
  * StarPU is free software; you can redistribute it and/or modify
  * StarPU is free software; you can redistribute it and/or modify
@@ -80,7 +80,7 @@ void parse_args(int argc, char **argv, int nodes)
                         display = 1;
                         display = 1;
                 }
                 }
 
 
-                if (strcmp(argv[i], "-h") == 0)
+                if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0)
                 {
                 {
                         printf("usage : %s [-display] [-size size] [-nblocks nblocks]\n", argv[0]);
                         printf("usage : %s [-display] [-size size] [-nblocks nblocks]\n", argv[0]);
                 }
                 }