Detection of Cray's slingshot detection has relied on the presence of (#35779)

a shared library /lib64/libcxi.so, which seems to also appear on other
non-slingshot systems.  This patch also checks to make sure that there
is a Cray programming enviornment in /opt/cray/pe in addition to the
shared library.
This commit is contained in:
Brian Van Essen 2023-03-01 23:19:20 -08:00 committed by GitHub
parent ae27df4113
commit eb29889f6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@
def slingshot_network(): def slingshot_network():
return os.path.exists("/lib64/libcxi.so") return os.path.exists("/opt/cray/pe") and os.path.exists("/lib64/libcxi.so")
def _target_name_from_craype_target_name(name): def _target_name_from_craype_target_name(name):