From b5797c9e6ceaee23b1d2907e84d87e74bf5899ac Mon Sep 17 00:00:00 2001 From: "q.yao" Date: Tue, 26 Oct 2021 10:54:45 +0800 Subject: [PATCH] Update c++14 (#149) --- backend_ops/CMakeLists.txt | 2 +- backend_ops/tensorrt/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend_ops/CMakeLists.txt b/backend_ops/CMakeLists.txt index 187c09697..89920bc8a 100644 --- a/backend_ops/CMakeLists.txt +++ b/backend_ops/CMakeLists.txt @@ -1,4 +1,4 @@ -set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_FLAGS_RELEASE "-O3") set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) diff --git a/backend_ops/tensorrt/CMakeLists.txt b/backend_ops/tensorrt/CMakeLists.txt index b8d847577..e48374632 100644 --- a/backend_ops/tensorrt/CMakeLists.txt +++ b/backend_ops/tensorrt/CMakeLists.txt @@ -47,7 +47,7 @@ endif() set(CUDA_NVCC_FLAGS_DEBUG "-g -O0") set(CUDA_NVCC_FLAGS_RELEASE "-O3") -set(CUDA_NVCC_FLAGS "-std=c++11 ${CUDA_NVCC_FLAGS}") +set(CUDA_NVCC_FLAGS "-std=c++14 ${CUDA_NVCC_FLAGS}") set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} ${CUDA_NVCC_FLAGS} ${_NVCC_FLAGS}") # tensorrt