Skip to content

Commit

Permalink
Update cmsCudaSetup.sh handling of CUDA_FLAGS (cms-sw#518)
Browse files Browse the repository at this point in the history
Support having multiple `-gencode arch=compute_..,code=sm_..` options on a single line,
as well as one set of options on each line.
  • Loading branch information
fwyzard committed Jul 18, 2020
1 parent e2840ed commit 1e0ab2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HeterogeneousCore/CUDAServices/scripts/cmsCudaSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ DOTS=$(cudaComputeCapabilities | awk '{ print $2 }' | sort -u)
CAPS=$(echo $DOTS | sed -e's#\.*##g')

# remove existing capabilities
sed -i $TOOL -e'\#<flags CUDA_FLAGS="-gencode arch=compute_..,code=sm_.."/>#d'
sed -i $TOOL -e"s#-gencode arch=compute_..,code=sm_.. *##g"
sed -i $TOOL -e"\#<flags CUDA_FLAGS=\"\"/>#d"

# add support for the capabilities found on this machine
for CAP in $CAPS; do
Expand Down

0 comments on commit 1e0ab2e

Please sign in to comment.