From 662c3384204dc8dc698d6687eb615bd53de4844e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lorenz=20H=C3=BCdepohl?= <lorenz.huedepohl@rzg.mpg.de>
Date: Thu, 22 Feb 2018 14:51:49 +0100
Subject: [PATCH] Name change of CUDA repos

---
 mpcdf_common.py | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/mpcdf_common.py b/mpcdf_common.py
index 5fc127d..065f615 100644
--- a/mpcdf_common.py
+++ b/mpcdf_common.py
@@ -15,7 +15,10 @@ def valid_mpi(compiler, mpi):
     """
     It might be possible to use Intel MPI libararies and compilers from
     different Parallel Studio packages, but I currently do not want to support
-    it
+    it.
+
+    Take care to keep this in sync with the file 'macros.obs_cluster' of
+    the package software:dist / mpcdf_cluster_macros
     """
     if compiler == "intel_18_0":
         if mpi.startswith("impi"):
@@ -33,11 +36,14 @@ def valid_cuda(cuda, compiler):
     """
     The CUDA distribution only works with certain gcc versions,
     this little function takes care that only supported combinations
-    are allowed
+    are allowed.
+
+    Take care to keep this in sync with the file 'macros.obs_cluster' of
+    the package software:dist / mpcdf_cluster_macros
     """
-    if cuda == "cuda_8":
+    if cuda == "cuda_8_0":
         return compiler == "gcc_5"
-    if cuda == "cuda_9":
+    if cuda == "cuda_9_1":
         return compiler == "gcc_6"
     return False
 
-- 
GitLab