Skip to content

Commit

Permalink
mpich: add a patch from libfabric upstream for old OSs
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored and kencu committed Nov 15, 2022
1 parent d7c09ae commit 205cb3c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion science/mpich/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ if {${subport_enabled}} {
patchfiles-append \
patch-no_qmkshrobj.diff \
patch-ch4-ipv6.diff \
patch-mpich-darwin-powerpc.diff
patch-mpich-darwin-powerpc.diff \
patch-pingpong.diff

platform darwin powerpc {
# libfabric calls for atomicops, on PPC at least
Expand Down
15 changes: 15 additions & 0 deletions science/mpich/files/patch-pingpong.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://github.com/ofiwg/libfabric/commit/522a3db73657e6eaf4ba225d88b4d76ec1b9f2f2

--- modules/libfabric/util/pingpong.c.orig 2021-10-28 02:49:37.000000000 +0800
+++ modules/libfabric/util/pingpong.c 2022-10-04 05:00:51.000000000 +0800
@@ -65,6 +65,10 @@
#define OFI_MR_BASIC_MAP (FI_MR_ALLOCATED | FI_MR_PROV_KEY | FI_MR_VIRT_ADDR)
#endif

+#ifndef AI_NUMERICSERV
+#define AI_NUMERICSERV 0
+#endif
+
static const uint64_t TAG = 1234;

enum precision {

0 comments on commit 205cb3c

Please sign in to comment.