shmem: mmap: shared memory error on Mac OS

98 views
Skip to first unread message

Nik Markus Leuenberger

unread,
Jan 17, 2025, 4:06:07 PM1/17/25
to deal.II User Group
Dear all,

Thanks to your help earlier, I was able to compile my program on the Mac ARM-machine using clang. However, when I execute the program from the command line using ./program, I get the following kind of strange error: 

[] shmem: mmap: an error occurred while determining whether or not /tmp/ompi.***.0/jf.0/3759407104/sm_segment.***.0.e0140000.0 could be created.

after that the program seems to continue normally. 

What is also strange is that I don't get any warning/error, when I use 
mpirun -n 1 ./program

The reason why I would like to get this fixed is because when I execute ctest for tests that are not configured to run with mpirun, I see the message as well in the test log and even if the test might still pass and run correctly, I feel like it would be nice to not have the error message.

Thank you very much in advance if you have experienced anything similar and found a solution how to get rid of it.

Best regards,
Nik


Bruno Turcksin

unread,
Feb 6, 2025, 9:37:59 AM2/6/25
to deal.II User Group
Hello Nik,

This looks like an OpenMPI issue. I have you tried the suggestions from https://github.com/open-mpi/ompi/issues/12784

Best,

Bruno

Nik Markus Leuenberger

unread,
Mar 13, 2025, 12:02:15 AM3/13/25
to deal.II User Group
Dear Bruno,

Thank you very much for your reply and apologies for my late reply. I think that was exactly the issue.
After upgrading to open-mpi 5.0.7, the problem seems to be gone.

Thanks again and best regards,
Nik

Bruno Turcksin

unread,
Mar 13, 2025, 8:20:27 AM3/13/25
to dea...@googlegroups.com
I am glad it's fixed!

Best,

Bruno

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/T8mEfyGLyv8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dealii/56d58536-b555-4d42-a484-b5b8a94b13e4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages