From 5deb5a310474f8a2f5fa156e5aa3ba160a423c80 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Wed, 15 Jun 2022 16:30:51 +0200 Subject: [PATCH] remove cuda-gcc-support tool if cuda gcc support not available --- scram-tool-conf.file | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scram-tool-conf.file b/scram-tool-conf.file index acee1b2d095..0d04062304b 100644 --- a/scram-tool-conf.file +++ b/scram-tool-conf.file @@ -122,6 +122,12 @@ if [ "${DUP_BIN}" != "" ] ; then exit 1 fi set -x +if [ -e %{i}/tools/selected/cuda-gcc-support.xml ] ; then + if [ "%{cuda_gcc_support}" != "true" ] ; then + rm -f %{i}/tools/selected/cuda-gcc-support.xml + echo "WARNING: CUDA does not support this GCC version, removing cuda-gcc-support.xml tool file" + fi +fi %post