initial implementation of slingshot detection (#33793)
This commit is contained in:
parent
90f0a8eacc
commit
1263b5c444
@ -36,6 +36,10 @@
|
|||||||
_xc_craype_dir = "/opt/cray/pe/cdt"
|
_xc_craype_dir = "/opt/cray/pe/cdt"
|
||||||
|
|
||||||
|
|
||||||
|
def slingshot_network():
|
||||||
|
return os.path.exists("/lib64/libcxi.so")
|
||||||
|
|
||||||
|
|
||||||
def _target_name_from_craype_target_name(name):
|
def _target_name_from_craype_target_name(name):
|
||||||
return _craype_name_to_target_name.get(name, name)
|
return _craype_name_to_target_name.get(name, name)
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
import spack.platforms.cray
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
@ -53,13 +54,13 @@ class Aluminum(CMakePackage, CudaPackage, ROCmPackage):
|
|||||||
variant("rccl", default=False, description="Builds with support for RCCL communication lib")
|
variant("rccl", default=False, description="Builds with support for RCCL communication lib")
|
||||||
variant(
|
variant(
|
||||||
"ofi_libfabric_plugin",
|
"ofi_libfabric_plugin",
|
||||||
default=True,
|
default=spack.platforms.cray.slingshot_network(),
|
||||||
when="+rccl",
|
when="+rccl",
|
||||||
description="Builds with support for OFI libfabric enhanced RCCL/NCCL communication lib",
|
description="Builds with support for OFI libfabric enhanced RCCL/NCCL communication lib",
|
||||||
)
|
)
|
||||||
variant(
|
variant(
|
||||||
"ofi_libfabric_plugin",
|
"ofi_libfabric_plugin",
|
||||||
default=True,
|
default=spack.platforms.cray.slingshot_network(),
|
||||||
when="+nccl",
|
when="+nccl",
|
||||||
description="Builds with support for OFI libfabric enhanced RCCL/NCCL communication lib",
|
description="Builds with support for OFI libfabric enhanced RCCL/NCCL communication lib",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user