From octave-maintainers-request at bevo dot che dot wisc dot edu Thu Nov 21 11:35:58 2002 Subject: Re: Patching Octave-MPI From: JD Cole To: octave-maintainers at bevo dot che dot wisc dot edu Date: Thu, 21 Nov 2002 09:46:27 -0800 > > >> > I just created mpi_init.oct and mpi_finalize.oct, under LAM, mpi_init > seems to initialize fine, however when I call the second function, > mpi_finalize, I get a failure message telling me that a function has > been called without a call to MPI_Init. This result is consistent with > what Andy described above, however, in the LAM man page for MPI_Init > it reads: > > MPI mandates that the same thread must call MPI_Init or > MPI_Init_thread and MPI_Finalize > > This leads me to the question: Do all octave DLD functions execute in > the same thread? > > JD By the way, I tried NULL arguments in addition to faking it, i.e. argc=1 argv[0]="octave", both successfully inited, but neither effected the mpi_finalize result. JD