From d2fdd7a2c4fbbacc08feb0146ad751be5123044b Mon Sep 17 00:00:00 2001
From: Sebastian Ohlmann <sebastian.ohlmann@mpcdf.mpg.de>
Date: Wed, 9 Jun 2021 12:18:56 +0200
Subject: [PATCH] Add prefers tag to cuda_aware repositories

---
 mpcdf_common.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mpcdf_common.py b/mpcdf_common.py
index 9fb37c4..0efb021 100644
--- a/mpcdf_common.py
+++ b/mpcdf_common.py
@@ -814,7 +814,8 @@ Macros:
                 if "openmpi" in mpi:
                     repo(cuda + "_aware_" + mpi + "_" + compiler,
                          ((project, cuda + "_" + mpi + "_" + compiler),),
-                         cuda_aware_mpi=True)
+                         cuda_aware_mpi=True,
+                         additional_tags=("Prefer: mpcdf_mpi_" + mpi + "_" + cuda,))
 
     if old_repos and not remove_old:
         print("Warning: Keeping the prjconf sections for the following obsolete repositories:")
-- 
GitLab