From 1263b5c4449200facdbfe8266267b51ce6fcf97e Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Wed, 16 Nov 2022 15:01:37 -0600 Subject: initial implementation of slingshot detection (#33793) --- lib/spack/spack/platforms/cray.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/spack/spack/platforms/cray.py b/lib/spack/spack/platforms/cray.py index dadf114d90..d266f26284 100644 --- a/lib/spack/spack/platforms/cray.py +++ b/lib/spack/spack/platforms/cray.py @@ -36,6 +36,10 @@ _ex_craype_dir = "/opt/cray/pe/cpe" _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): return _craype_name_to_target_name.get(name, name) -- cgit v1.2.3-70-g09d2