From 59c03be848c6e24fbec187502e2314c627d65cb2 Mon Sep 17 00:00:00 2001
From: "Fabian.Jakub" <fabian@jakub.com>
Date: Wed, 24 May 2023 17:18:39 +0200
Subject: [PATCH] minor tweak to spack find compiler method for use at KCS
 cluster

---
 platforms/common/spack_utils.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/platforms/common/spack_utils.sh b/platforms/common/spack_utils.sh
index 0976792..47132eb 100644
--- a/platforms/common/spack_utils.sh
+++ b/platforms/common/spack_utils.sh
@@ -30,7 +30,7 @@ function _install_spack() {
   if [[ $(spack compiler info ${SPACK_COMPILER}) ]]; then
     echo "Found Compiler $(spack compiler info ${SPACK_COMPILER})"
   else
-    if $(spack load ${SPACK_COMPILER}); then
+    if $(spack location --install-dir ${SPACK_COMPILER}); then
       echo "found the compiler ${SPACK_COMPILER} as a spack package at $(spack location --install-dir $SPACK_COMPILER)"
     else
       echo "could not find compiler, will now try to install it... this may take a while"
-- 
GitLab