Hi Darius, Here is the error message when the default error handler was used, Fatal error in MPIR_CommGetAttr: Invalid argument, error stack: MPIR_CommGetAttr(261): MPIR_Comm_get_attr(MPI_COMM_WORLD, comm_keyval=-153930956 8, attribute_val=(nil), flag=0x7fff7f5dc048) failed MPIR_CommGetAttr(85).: Null pointer in parameter attr_val /Users/zm35101:$ mpiexec -n 2 ./MPI_test Fatal error in MPIR_CommGetAttr: Invalid argument, error stack: MPIR_CommGetAttr(261): MPIR_Comm_get_attr(MPI_COMM_WORLD, comm_keyval=-1539309568, attribute_val=(nil), flag=0x7fffb364fdf8) failed MPIR_CommGetAttr(85).: Null pointer in parameter attr_val Zhaoming -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Friday, November 30, 2012 4:37 PM To: [email protected] Subject: discuss Digest, Vol 1, Issue 18 Send discuss mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.mpich.org/mailman/listinfo/discuss or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of discuss digest..." Today's Topics: 1. Re: How to specify number of cores for each process (Pavan Balaji) 2. Re: How to specify number of cores for each process (Pavan Balaji) 3. Re: How to specify number of cores for each process (Pavan Balaji) 4. MPI and signal handlers (Matthieu Dorier) 5. Re: using MPICH_FAILED_PROCESSES (Darius Buntinas) 6. Re: MPI and signal handlers (Darius Buntinas) 7. Re: MPI and signal handlers (Matthieu Dorier) 8. Hanging code in MPI_Comm_Spawn (Tim Gallagher) 9. Re: Hanging code in MPI_Comm_Spawn (Reuti) 10. Re: Support for MIC in mpich2-1.5 (John Fettig) ---------------------------------------------------------------------- Message: 1 Date: Wed, 28 Nov 2012 07:41:46 -0600 From: Pavan Balaji <[email protected]> To: [email protected] Subject: Re: [mpich-discuss] How to specify number of cores for each process Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1 There are two problems in your usage below. 1. I'm guessing that your host file specifies only one core for each host. Something like: host1 host2 Did you look through the mpiexec usage document that tells you how to specify multiple cores on each host? http://wiki.mpich.org/mpich/index.php/Using_the_Hydra_Process_Manager You should do something like: host1:16 host2:16 (please read the documentation on the above link for more information). 2. There's option called -binding auto. Did you mean -binding none? -- Pavan On 11/27/2012 09:37 PM US Central Time, Zachary Stanko wrote:
Hello,
I am running an MPI program on a machine with two 16-core processors yet, no matter what configuration I use with mpiexec, I am only receiving 4 simultaneous processes. I would like to maximize this machine's potential and run 8 or 16 processes. I have tried all of the channel selections and tried the -binding option. Since I need to specify a different working directory for each process (due to many output files with naming conflicts), I have a config file with 8 lines of the form:
-n 1 -binding auto -dir <mydir01> <myprog> <inpfile> -n 1 -binding auto -dir <mydir02> <myprog> <inpfile> ...etc
and I run:
mpiexec -configfile <filename>
Am I doing something wrong, or does MPICH just know best and cannot run more than 4 jobs at a time on this system?
Thanks,
Zak
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
-- Pavan Balaji http://www.mcs.anl.gov/~balaji ------------------------------ Message: 2 Date: Wed, 28 Nov 2012 07:43:01 -0600 From: Pavan Balaji <[email protected]> To: [email protected] Subject: Re: [mpich-discuss] How to specify number of cores for each process Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1 As Zachary explained below, each process is in a different directory, so he'll need to use an MPMD launch and can't do -n 16 directly. -- Pavan On 11/27/2012 09:42 PM US Central Time, Jeff Hammond wrote:
Did you try "mpiexec -n 16 ..."?
Sent from my iPhone
On Nov 27, 2012, at 10:37 PM, Zachary Stanko <[email protected] <mailto:[email protected]>> wrote:
Hello,
I am running an MPI program on a machine with two 16-core processors yet, no matter what configuration I use with mpiexec, I am only receiving 4 simultaneous processes. I would like to maximize this machine's potential and run 8 or 16 processes. I have tried all of the channel selections and tried the -binding option. Since I need to specify a different working directory for each process (due to many output files with naming conflicts), I have a config file with 8 lines of the form:
-n 1 -binding auto -dir <mydir01> <myprog> <inpfile> -n 1 -binding auto -dir <mydir02> <myprog> <inpfile> ...etc
and I run:
mpiexec -configfile <filename>
Am I doing something wrong, or does MPICH just know best and cannot run more than 4 jobs at a time on this system?
Thanks,
Zak _______________________________________________ discuss mailing list <mailto:[email protected]>[email protected] <mailto:[email protected]> To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
-- Pavan Balaji http://www.mcs.anl.gov/~balaji ------------------------------ Message: 3 Date: Wed, 28 Nov 2012 07:44:52 -0600 From: Pavan Balaji <[email protected]> To: [email protected] Subject: Re: [mpich-discuss] How to specify number of cores for each process Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1 On 11/28/2012 07:41 AM US Central Time, Pavan Balaji wrote:
2. There's option called -binding auto. Did you mean -binding none?
Gah. I meant, there's *no* option called -binding auto. -- Pavan -- Pavan Balaji http://www.mcs.anl.gov/~balaji ------------------------------ Message: 4 Date: Wed, 28 Nov 2012 15:54:59 +0100 (CET) From: Matthieu Dorier <[email protected]> To: [email protected] Subject: [mpich-discuss] MPI and signal handlers Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Hello, I read in the MPI-3 standard that allowing MPI calls within signal handlers is implementation dependent (I guess it's the same in previous standards) . Does mpich allow MPI calls within signal handlers? Also which signals are used by mpich? Does mpich use SIGSEGV? Thank you, Matthieu Dorier PhD student at ENS Cachan Brittany and IRISA http://people.irisa.fr/Matthieu.Dorier