suppress CMAKE_CUDA_ARCHITECTURES warning (#278)

* suppress CMAKE_CUDA_ARCHITECTURES warning

* refactor
This commit is contained in:
Chen Xin 2022-03-28 15:07:05 +08:00 committed by GitHub
parent 116d2316fc
commit fee55f3df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 11 deletions

View File

@ -4,7 +4,6 @@ include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
project(mmdeploy_tensorrt_ops CUDA CXX)
include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
include(${CMAKE_SOURCE_DIR}/cmake/tensorrt.cmake NO_POLICY_SCOPE)
# cub

View File

@ -4,11 +4,6 @@ cmake_minimum_required(VERSION 3.14)
include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
project(mmdeploy_cuda_device CUDA CXX)
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.18.0")
# suppress 'CMAKE_CUDA_ARCHITECTURES' warning
cmake_policy(SET CMP0104 OLD)
endif ()
include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)
set(SRCS

View File

@ -1,5 +1,6 @@
# Copyright (c) OpenMMLab. All rights reserved.
cmake_minimum_required(VERSION 3.14)
include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
project(mmdeploy_trt_net)
include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)

View File

@ -1,12 +1,8 @@
# Copyright (c) OpenMMLab. All rights reserved.
cmake_minimum_required(VERSION 3.14)
include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
project(mmdeploy_cuda_transform_impl CUDA CXX)
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.18.0")
# suppress 'CMAKE_CUDA_ARCHITECTURES' warning
cmake_policy(SET CMP0104 OLD)
endif ()
find_package(pplcv REQUIRED)
include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)