From 6b65199afba2bd6ef5d6838db53ed77daa352fed Mon Sep 17 00:00:00 2001 From: sfilippone Date: Mon, 11 Dec 2023 13:21:23 +0100 Subject: [PATCH] Check CUDA version for -dopt=on only from 11.7 --- configure | 5 ++++- configure.ac | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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";