From 4158b39d97aed11cd90ef8ce6733cd6f08176bf3 Mon Sep 17 00:00:00 2001 From: Paul Bauer Date: Tue, 14 Sep 2021 08:27:29 +0000 Subject: [PATCH] Reenable GPUs in CI --- admin/gitlab-ci/gromacs.matrix.gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/admin/gitlab-ci/gromacs.matrix.gitlab-ci.yml b/admin/gitlab-ci/gromacs.matrix.gitlab-ci.yml index f4d3d27dd7..1b8892e49a 100644 --- a/admin/gitlab-ci/gromacs.matrix.gitlab-ci.yml +++ b/admin/gitlab-ci/gromacs.matrix.gitlab-ci.yml @@ -196,13 +196,16 @@ # If $GMX_TEST_REQUIRED_NUMBER_OF_DEVICES is not set and we have GPUs, set it - if [ -z $GMX_TEST_REQUIRED_NUMBER_OF_DEVICES ] && [ -n $KUBERNETES_EXTENDED_RESOURCE_NAME ] ; then if grep -q '/gpu$' <<< "$KUBERNETES_EXTENDED_RESOURCE_NAME"; then - echo "export GMX_TEST_REQUIRED_NUMBER_OF_DEVICES=\"0\""; - export GMX_TEST_REQUIRED_NUMBER_OF_DEVICES=0; + echo "export GMX_TEST_REQUIRED_NUMBER_OF_DEVICES=\"$KUBERNETES_EXTENDED_RESOURCE_LIMIT\""; + export GMX_TEST_REQUIRED_NUMBER_OF_DEVICES="$KUBERNETES_EXTENDED_RESOURCE_LIMIT"; fi fi - if grep -qF 'nvidia.com/gpu' <<< "$KUBERNETES_EXTENDED_RESOURCE_NAME"; then nvidia-smi || true; fi + - if grep -qF 'amd.com/gpu' <<< "$KUBERNETES_EXTENDED_RESOURCE_NAME"; then + clinfo -l || true; + fi - if grep -qF 'intel.com/gpu' <<< "$KUBERNETES_EXTENDED_RESOURCE_NAME"; then sycl-ls || true; fi -- 2.22.0