Check CUDA version for -dopt=on only from 11.7

repack-nvid
sfilippone 1 year ago
parent 0230fbb7af
commit 6b65199afb

5
configure vendored

@ -10834,7 +10834,10 @@ fi
pac_cv_cudacc="50,60,70,75"; pac_cv_cudacc="50,60,70,75";
CUDA_CC="$pac_cv_cudacc"; CUDA_CC="$pac_cv_cudacc";
fi fi
CUDEFINES="--dopt=on"; if (( $pac_cv_cuda_version >= 11070 ))
then
CUDEFINES="--dopt=on";
fi
for cc in `echo $pac_cv_cudacc|sed 's/,/ /gi'` for cc in `echo $pac_cv_cudacc|sed 's/,/ /gi'`
do do
CUDEFINES="$CUDEFINES -gencode arch=compute_$cc,code=sm_$cc"; CUDEFINES="$CUDEFINES -gencode arch=compute_$cc,code=sm_$cc";

@ -811,7 +811,10 @@ if test "x$pac_cv_have_cuda" == "xyes"; then
pac_cv_cudacc="50,60,70,75"; pac_cv_cudacc="50,60,70,75";
CUDA_CC="$pac_cv_cudacc"; CUDA_CC="$pac_cv_cudacc";
fi fi
CUDEFINES="--dopt=on"; if (( $pac_cv_cuda_version >= 11070 ))
then
CUDEFINES="--dopt=on";
fi
for cc in `echo $pac_cv_cudacc|sed 's/,/ /gi'` for cc in `echo $pac_cv_cudacc|sed 's/,/ /gi'`
do do
CUDEFINES="$CUDEFINES -gencode arch=compute_$cc,code=sm_$cc"; CUDEFINES="$CUDEFINES -gencode arch=compute_$cc,code=sm_$cc";

Loading…
Cancel
Save