diff --git a/configure b/configure index 48487f98..3a774ee1 100755 --- a/configure +++ b/configure @@ -10834,7 +10834,10 @@ fi pac_cv_cudacc="50,60,70,75"; CUDA_CC="$pac_cv_cudacc"; 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'` do CUDEFINES="$CUDEFINES -gencode arch=compute_$cc,code=sm_$cc"; diff --git a/configure.ac b/configure.ac index 4b76485b..62aad4f8 100755 --- a/configure.ac +++ b/configure.ac @@ -811,7 +811,10 @@ if test "x$pac_cv_have_cuda" == "xyes"; then pac_cv_cudacc="50,60,70,75"; CUDA_CC="$pac_cv_cudacc"; 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'` do CUDEFINES="$CUDEFINES -gencode arch=compute_$cc,code=sm_$cc";