From 29e6fd2a2eff9f05a32b11b85b483dd6c0e2923d Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Sun, 12 Jun 2022 12:04:41 +0200 Subject: [PATCH] Fix cmsCudaSetup.sh to follow the latest changes to cuda.xml --- HeterogeneousCore/CUDAServices/scripts/cmsCudaSetup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HeterogeneousCore/CUDAServices/scripts/cmsCudaSetup.sh b/HeterogeneousCore/CUDAServices/scripts/cmsCudaSetup.sh index c130bf77688d5..bac120ed0ffad 100755 --- a/HeterogeneousCore/CUDAServices/scripts/cmsCudaSetup.sh +++ b/HeterogeneousCore/CUDAServices/scripts/cmsCudaSetup.sh @@ -6,12 +6,12 @@ DOTS=$(cudaComputeCapabilities | awk '{ print $2 }' | sort -u) CAPS=$(echo $DOTS | sed -e's#\.*##g') # remove existing capabilities -sed -i $TOOL -e"s#-gencode arch=compute_..,code=sm_.. *##g" -sed -i $TOOL -e"\##d" +sed -i $TOOL -e"s# *-gencode arch=compute_..,code=sm_.. *# #g" +sed -i $TOOL -e"s# *-gencode arch=compute_..,code=\[sm_..,compute_..\] *# #g" # add support for the capabilities found on this machine for CAP in $CAPS; do - sed -i $TOOL -e"\##a\ " + sed -i $TOOL -e"/flags CUDA_FLAGS/s#\"/># -gencode arch=compute_$CAP,code=[sm_$CAP,compute_$CAP]\"/>#" done # reconfigure the cuda.xml tool