From 7fc5c520a1cc1c9d6e18d2f5a10abcc91b446362 Mon Sep 17 00:00:00 2001
From: patmjen <patmjen@dtu.dk>
Date: Thu, 23 Mar 2023 10:40:14 +0100
Subject: [PATCH] Fix bug in init script

When searching for a cuDNN module, the output was not redirected to stdout.
---
 scripts/init.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/init.sh b/scripts/init.sh
index 5cb26df..7f24f7f 100644
--- a/scripts/init.sh
+++ b/scripts/init.sh
@@ -16,7 +16,7 @@ module load $(module avail -o modulepath -t -C "python-${PYTHON_VERSION}" 2>&1 |
 module load $(module avail -o modulepath -t -C "python-${PYTHON_VERSION}" 2>&1 | grep "matplotlib/")
 module load $(module avail -o modulepath -t -C "python-${PYTHON_VERSION}" 2>&1 | grep "pandas/")
 module load cuda/$CUDA_VERSION
-CUDNN_MOD=$(module avail -o modulepath -t cudnn | grep "cuda-${CUDA_VERSION}" 2>&1 | sort | tail -n1)
+CUDNN_MOD=$(module avail -o modulepath -t cudnn 2>&1 | grep "cuda-${CUDA_VERSION}" | sort | tail -n1)
 if [[ ${CUDNN_MOD} ]]
 then
     module load ${CUDNN_MOD}
-- 
GitLab