[OMPI users] Code failing when requesting all "processors"

2020-10-13 Thread Diego Zuccato via users
Hello all. I have a problem on a server: launching a job with mpirun fails if I request all 32 CPUs (threads, since HT is enabled) but succeeds if I only request 30. The test code is really minimal: -8<-- #include "mpi.h" #include #include #define MASTER 0 int main (int argc, char *ar

Re: [OMPI users] Code failing when requesting all "processors"

2020-10-13 Thread Jeff Squyres (jsquyres) via users
That's odd. What version of Open MPI are you using? > On Oct 13, 2020, at 6:34 AM, Diego Zuccato via users > wrote: > > Hello all. > > I have a problem on a server: launching a job with mpirun fails if I > request all 32 CPUs (threads, since HT is enabled) but succeeds if I > only request 30

Re: [OMPI users] Code failing when requesting all "processors"

2020-10-13 Thread Gus Correa via users
Can you use taskid after MPI_Finalize? Isn't it undefined/deallocated at that point? Just a question (... or two) ... Gus Correa > MPI_Finalize(); > > printf("END OF CODE from task %d\n", taskid); On Tue, Oct 13, 2020 at 10:34 AM Jeff Squyres (jsquyres) via users < users@lists.open-mpi.org

Re: [OMPI users] Code failing when requesting all "processors"

2020-10-13 Thread Jeff Squyres (jsquyres) via users
On Oct 13, 2020, at 10:43 AM, Gus Correa via users wrote: > > Can you use taskid after MPI_Finalize? Yes. It's a variable, just like any other. > Isn't it undefined/deallocated at that point? No. MPI filled it in during MPI_Comm_rank() and then never touched it again. So even though MPI ma