From eb29889f6eae9c415895f34023b84f1d72d01ef4 Mon Sep 17 00:00:00 2001 From: Brian Van Essen Date: Wed, 1 Mar 2023 23:19:20 -0800 Subject: [PATCH] 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. --- lib/spack/spack/platforms/cray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/platforms/cray.py b/lib/spack/spack/platforms/cray.py index 70bb45af5f8..3d88285f70c 100644 --- a/lib/spack/spack/platforms/cray.py +++ b/lib/spack/spack/platforms/cray.py @@ -37,7 +37,7 @@ 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):