From owner-freebsd-current@FreeBSD.ORG Tue May 27 00:23:17 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1708437B401 for ; Tue, 27 May 2003 00:23:17 -0700 (PDT) Received: from slimy.rodal.no (ti121210a080-3145.bb.online.no [80.212.12.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8563B43F93 for ; Tue, 27 May 2003 00:23:15 -0700 (PDT) (envelope-from morten@rodal.no) Received: from atlantis.rodal.no (atlantis.rodal.no [IPv6:2001:618:4:10f2::3]) by slimy.rodal.no (8.12.8p1/8.12.8) with ESMTP id h4R7NBnh087817; Tue, 27 May 2003 09:23:11 +0200 (CEST) (envelope-from morten@rodal.no) Received: (from morten@localhost) by atlantis.rodal.no (8.12.9/8.12.9/Submit) id h4R7NAG6012451; Tue, 27 May 2003 09:23:10 +0200 (CEST) (envelope-from morten) Date: Tue, 27 May 2003 09:23:10 +0200 From: Morten Rodal To: Anthony Schneider Message-ID: <20030527072310.GB3290@atlantis.rodal.no> References: <20030525064929.GA96588@x-anthony.com> <20030525211730.GA5226@x-anthony.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <20030525211730.GA5226@x-anthony.com> cc: freebsd-current@freebsd.org Subject: Re: mpi + shmem issues X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 07:23:17 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 25, 2003 at 05:17:30PM -0400, Anthony Schneider wrote: > additional information: >=20 > when recompiling mpich for debugging symbols, configure fails on: > checking that usable shared memory locks were found... no >=20 > so, does this mean that mpich somehow exhausted all shmem locks? > after running the program only 10 times, i see this as infeasible, > considering > a) mpich (presumably in MPI_Init()) would only want 1 or > 2 locks on init > and > b) any shared memory locks mpich grabs should be freed > upon process completion (whether clean or not) by the > operating system, no? >=20 ALWAYS remember to call MPI_Finalize(), since it clears up stuff like semaphores and memory allocations. > > #include > > #include > >=20 > > int main (int argc, char *argv[]) { > > int mpiRank, mpiSize; > >=20 > > MPI_Init (&argc, &argv); > > MPI_Comm_rank (MPI_COMM_WORLD, &mpiRank); > >=20 > > printf ("#%d here\n", mpiRank); > >=20 MPI_Finalize(); > > return 0; > >=20 > > } > >=20 >=20 --=20 Morten Rodal --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+0xJebWe1Cy11WVsRAh/5AJ99JyBvNpmALaWADaUyNffx13zxOQCfQS66 fDP+7h1PDFoopMWJ4zcKFng= =yW8R -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--