legion: add ofi-slingshot11 conduit (#38859)
This commit is contained in:
parent
ce6b79cd96
commit
dfcb3bca65
@ -157,10 +157,11 @@ def validate_gasnet_root(value):
|
|||||||
)
|
)
|
||||||
conflicts("gasnet_root", when="network=mpi")
|
conflicts("gasnet_root", when="network=mpi")
|
||||||
|
|
||||||
|
gasnet_conduits = ["aries", "ibv", "udp", "mpi", "ucx", "ofi-slingshot11"]
|
||||||
variant(
|
variant(
|
||||||
"conduit",
|
"conduit",
|
||||||
default="none",
|
default="none",
|
||||||
values=("aries", "ibv", "udp", "mpi", "ucx", "none"),
|
values=gasnet_conduits + ["none"],
|
||||||
description="The gasnet conduit(s) to enable.",
|
description="The gasnet conduit(s) to enable.",
|
||||||
multi=False,
|
multi=False,
|
||||||
)
|
)
|
||||||
@ -171,7 +172,6 @@ def validate_gasnet_root(value):
|
|||||||
msg="a conduit must be selected when 'network=gasnet'",
|
msg="a conduit must be selected when 'network=gasnet'",
|
||||||
)
|
)
|
||||||
|
|
||||||
gasnet_conduits = ("aries", "ibv", "udp", "mpi", "ucx")
|
|
||||||
for c in gasnet_conduits:
|
for c in gasnet_conduits:
|
||||||
conflict_str = "conduit=%s" % c
|
conflict_str = "conduit=%s" % c
|
||||||
conflicts(
|
conflicts(
|
||||||
@ -277,6 +277,7 @@ def validate_gasnet_root(value):
|
|||||||
default=512,
|
default=512,
|
||||||
description="Maximum number of fields allowed in a logical region.",
|
description="Maximum number of fields allowed in a logical region.",
|
||||||
)
|
)
|
||||||
|
depends_on("cray-pmi", when="conduit=ofi-slingshot11 ^cray-mpich")
|
||||||
|
|
||||||
def setup_build_environment(self, build_env):
|
def setup_build_environment(self, build_env):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
@ -300,7 +301,13 @@ def cmake_args(self):
|
|||||||
options.append("-DLegion_EMBED_GASNet_LOCALSRC=%s" % gasnet_dir)
|
options.append("-DLegion_EMBED_GASNet_LOCALSRC=%s" % gasnet_dir)
|
||||||
|
|
||||||
gasnet_conduit = spec.variants["conduit"].value
|
gasnet_conduit = spec.variants["conduit"].value
|
||||||
options.append("-DGASNet_CONDUIT=%s" % gasnet_conduit)
|
|
||||||
|
if "-" in gasnet_conduit:
|
||||||
|
gasnet_conduit, gasnet_system = gasnet_conduit.split("-")
|
||||||
|
options.append("-DGASNet_CONDUIT=%s" % gasnet_conduit)
|
||||||
|
options.append("-DGASNet_SYSTEM=%s" % gasnet_system)
|
||||||
|
else:
|
||||||
|
options.append("-DGASNet_CONDUIT=%s" % gasnet_conduit)
|
||||||
|
|
||||||
if "+gasnet_debug" in spec:
|
if "+gasnet_debug" in spec:
|
||||||
options.append("-DLegion_EMBED_GASNet_CONFIGURE_ARGS=--enable-debug")
|
options.append("-DLegion_EMBED_GASNet_CONFIGURE_ARGS=--enable-debug")
|
||||||
|
Loading…
Reference in New Issue
Block a user