File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ if test "$(uname)" = Linux; then
4141 build_ldflags+=(" -Wl,--as-needed" )
4242fi
4343if test " $( uname) " = Darwin; then
44+ build_ldflags+=(" -Wl,-reproducible" )
4445 build_ldflags+=(" -Wl,-dead_strip_dylibs" )
4546fi
4647
@@ -409,6 +410,21 @@ if test "$(uname)" = Darwin; then
409410 ln -s " $libpmpi " libpmpi.dylib
410411fi
411412
413+ if test " $( uname) -$( uname -m) " = Darwin-arm64; then
414+ binaries=(
415+ " ${DESTDIR}${PREFIX} " /lib/libpmpi.* .dylib
416+ " ${DESTDIR}${PREFIX} " /lib/libmpi.* .dylib
417+ " ${DESTDIR}${PREFIX} " /bin/hydra*
418+ " ${DESTDIR}${PREFIX} " /bin/mpich*
419+ " ${DESTDIR}${PREFIX} " /bin/mpirun
420+ " ${DESTDIR}${PREFIX} " /bin/mpivars
421+ " ${DESTDIR}${PREFIX} " /bin/mpiexec*
422+ )
423+ for bin in " ${binaries[@]} " ; do
424+ codesign --force --options linker-signed --sign - " $bin "
425+ done
426+ fi
427+
412428} # fixup-mpi-mpich()
413429
414430fixup-mpi-openmpi () {
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ RUN mpicxx -show
8888RUN mpicxx helloworld.cxx -o helloworld-cxx
8989
9090RUN command -v mpiexec
91+ RUN mpiexec -help
9192RUN mpiexec -n 3 ./helloworld-c
9293RUN mpiexec -n 3 ./helloworld-cxx
9394
You can’t perform that action at this time.
0 commit comments