Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cmsCudaSetup.sh to follow the latest changes to cuda.xml [12.4.x] #38344

Merged
merged 1 commit into from Jun 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions HeterogeneousCore/CUDAServices/scripts/cmsCudaSetup.sh
Expand Up @@ -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"\#<flags CUDA_FLAGS=\"\"/>#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"\#</client>#a\ <flags CUDA_FLAGS=\"-gencode arch=compute_$CAP,code=sm_$CAP\"/>"
sed -i $TOOL -e"/flags CUDA_FLAGS/s#\"/># -gencode arch=compute_$CAP,code=[sm_$CAP,compute_$CAP]\"/>#"
done

# reconfigure the cuda.xml tool
Expand Down