From a7f96eca6cb11408a9ecaa6f306e2b29be30a981 Mon Sep 17 00:00:00 2001 From: LabMemNo003 Date: Mon, 14 Dec 2020 10:32:48 +0800 Subject: [PATCH] Fix typo in CMakeLists.txt (#329) * Fix typo in CMakeLists.txt * Fix format error for CUDA_NVCC_FLAGS --- arcface/CMakeLists.txt | 2 +- dbnet/CMakeLists.txt | 2 +- mobilenetv3/CMakeLists.txt | 2 +- psenet/CMakeLists.txt | 2 +- retinaface/CMakeLists.txt | 2 +- retinafaceAntiCov/CMakeLists.txt | 2 +- tutorials/run_on_windows.md | 2 +- ufld/CMakeLists.txt | 2 +- yolov3-spp/CMakeLists.txt | 2 +- yolov3-tiny/CMakeLists.txt | 2 +- yolov3/CMakeLists.txt | 2 +- yolov4/CMakeLists.txt | 2 +- yolov5/CMakeLists.txt | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arcface/CMakeLists.txt b/arcface/CMakeLists.txt index db0e030..09c6b97 100644 --- a/arcface/CMakeLists.txt +++ b/arcface/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") diff --git a/dbnet/CMakeLists.txt b/dbnet/CMakeLists.txt index 1d06c7a..5f565e3 100644 --- a/dbnet/CMakeLists.txt +++ b/dbnet/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) diff --git a/mobilenetv3/CMakeLists.txt b/mobilenetv3/CMakeLists.txt index 7613d39..5108d6b 100644 --- a/mobilenetv3/CMakeLists.txt +++ b/mobilenetv3/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30;) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30;) include_directories(${PROJECT_SOURCE_DIR}/include) # include and link dirs of cuda and tensorrt, you need adapt them if yours are different diff --git a/psenet/CMakeLists.txt b/psenet/CMakeLists.txt index b9c6ef2..f6143d5 100644 --- a/psenet/CMakeLists.txt +++ b/psenet/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) # include and link dirs of cuda and tensorrt, you need adapt them if yours are different diff --git a/retinaface/CMakeLists.txt b/retinaface/CMakeLists.txt index cad1261..b5c6312 100644 --- a/retinaface/CMakeLists.txt +++ b/retinaface/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") message("embed_platform on") diff --git a/retinafaceAntiCov/CMakeLists.txt b/retinafaceAntiCov/CMakeLists.txt index 570d9a3..957716c 100644 --- a/retinafaceAntiCov/CMakeLists.txt +++ b/retinafaceAntiCov/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") diff --git a/tutorials/run_on_windows.md b/tutorials/run_on_windows.md index 9f62832..802fe6b 100644 --- a/tutorials/run_on_windows.md +++ b/tutorials/run_on_windows.md @@ -39,7 +39,7 @@ message(STATUS " include path: ${CUDA_INCLUDE_DIRS}") include_directories(${CUDA_INCLUDE_DIRS}) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11; -g; -G;-gencode; arch=compute_75;code=sm_75) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11; -g; -G;-gencode; arch=compute_75;code=sm_75) #### enable_language(CUDA) # add this line, then no need to setup cuda path in vs #### diff --git a/ufld/CMakeLists.txt b/ufld/CMakeLists.txt index f3cddb3..f5bfee5 100644 --- a/ufld/CMakeLists.txt +++ b/ufld/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) diff --git a/yolov3-spp/CMakeLists.txt b/yolov3-spp/CMakeLists.txt index fd60244..06628bc 100644 --- a/yolov3-spp/CMakeLists.txt +++ b/yolov3-spp/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) # include and link dirs of cuda and tensorrt, you need adapt them if yours are different diff --git a/yolov3-tiny/CMakeLists.txt b/yolov3-tiny/CMakeLists.txt index d1a6c25..b4716f6 100644 --- a/yolov3-tiny/CMakeLists.txt +++ b/yolov3-tiny/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") diff --git a/yolov3/CMakeLists.txt b/yolov3/CMakeLists.txt index 380978f..f2d6c67 100644 --- a/yolov3/CMakeLists.txt +++ b/yolov3/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) # include and link dirs of cuda and tensorrt, you need adapt them if yours are different diff --git a/yolov4/CMakeLists.txt b/yolov4/CMakeLists.txt index da27c3a..e6ad14c 100644 --- a/yolov4/CMakeLists.txt +++ b/yolov4/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) # include and link dirs of cuda and tensorrt, you need adapt them if yours are different diff --git a/yolov5/CMakeLists.txt b/yolov5/CMakeLists.txt index f40e006..2e55b6b 100644 --- a/yolov5/CMakeLists.txt +++ b/yolov5/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(CUDA REQUIRED) -set(CUDA_NVCC_PLAGS ${CUDA_NVCC_PLAGS};-std=c++11;-g;-G;-gencode;arch=compute_30;code=sm_30) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-std=c++11;-g;-G;-gencode arch=compute_30,code=sm_30) include_directories(${PROJECT_SOURCE_DIR}/include) # include and link dirs of cuda and tensorrt, you need adapt them if yours are different