shmem_finalize

6 views
Skip to first unread message

Palmer, Bruce J

unread,
Dec 2, 2025, 4:54:45 PM (2 days ago) Dec 2
to Open MPI Users
Hi,

Not sure if this is the right place for this inquiry, but I’ve got a question about the implementation of OpenSHMEM that is distributed with OpenMPI. As far as I can tell from the OpenSHMEM documentation, MPI_Finalize() and shmem_finalize are relatively independent and it should be possible to call shmem_finalize followed by MPI_Finalize without incurring an error. However, it looks like the shmem_finalize implementation is calling omni_mpi_finalize and this causes MPI_Finalize to crash. I can fix this easily in my application, but it seems like I shouldn’t have to.

Bruce

Pritchard Jr., Howard

unread,
Dec 3, 2025, 2:11:30 PM (12 hours ago) Dec 3
to us...@lists.open-mpi.org

HI Bruce,

 

Could you describe more what the crash is?  Does the application emit some sort of error message or is there a segmentation fault and maybe traceback?

Also which version of Open MPI/OSHMEM are you using?

 

Howard

To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@lists.open-mpi.org.

Palmer, Bruce J

unread,
Dec 3, 2025, 4:02:09 PM (10 hours ago) Dec 3
to us...@lists.open-mpi.org
It appears to complain about a call to MPI_Comm_free that is called after MPI_Finalize. I assume this is occurring because there is a call to MPI_Comm_free (or its internal equivalent) inside MPI_Finalize and this is triggered because our code has a call to shmem_finalize that is followed by a call to MPI_Finalize. My understanding is that should be allowed.

Bruce

From: 'Pritchard Jr., Howard' via Open MPI users <us...@lists.open-mpi.org>
Date: Wednesday, December 3, 2025 at 11:11 AM
To: us...@lists.open-mpi.org <us...@lists.open-mpi.org>
Subject: Re: [EXTERNAL] [OMPI users] shmem_finalize

Check twice before you click! This email originated from outside PNNL.
Reply all
Reply to author
Forward
0 new messages