/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
HeterogeneousCore/CUDAServices/scripts/cmsCudaSetup.sh
20 строк
757 B
Andrea Bocci
Fix cmsCudaSetup.sh to follow the latest changes to cuda.xml
12 июн 2022, 13:04
Не верифицирован
12 июн 2022, 13:04
29e6fd2
Код
Авторство
О чём код?
#! /bin/bash TOOL=$CMSSW_BASE/config/toolbox/$SCRAM_ARCH/tools/selected/cuda.xml # enumerate the supported streaming multiprocessor (sm) compute capabilites 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"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"/flags CUDA_FLAGS/s#\"/># -gencode arch=compute_$CAP,code=[sm_$CAP,compute_$CAP]\"/>#" done # reconfigure the cuda.xml tool scram setup cuda echo "SCRAM configured to support CUDA streaming multiprocessor architectures $DOTS"