diff --git a/CMakeLists.txt b/CMakeLists.txt index 5453a411c..ab55276b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2020-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2020-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -24,7 +24,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.31.8) project(tritoncore LANGUAGES C CXX) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index df7f1bde0..2f2d5a1ad 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -23,7 +23,7 @@ # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.31.8) add_subdirectory(tritonserver) diff --git a/python/tritonserver/CMakeLists.txt b/python/tritonserver/CMakeLists.txt index d2480bc94..cc491d0a7 100644 --- a/python/tritonserver/CMakeLists.txt +++ b/python/tritonserver/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright (c) 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -24,7 +24,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -cmake_minimum_required (VERSION 3.18) +cmake_minimum_required (VERSION 3.31.8) project(triton-bindings LANGUAGES C CXX) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eb911fbf0..28946b174 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2019-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2019-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -24,7 +24,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.31.8) project(libtritonserver LANGUAGES C CXX) @@ -55,8 +55,6 @@ FetchContent_MakeAvailable(repo-common) # if(${TRITON_ENABLE_GPU}) find_package(CUDAToolkit REQUIRED) - find_package(CUDA REQUIRED) - message(STATUS "Using CUDA ${CUDA_VERSION}") endif() # TRITON_ENABLE_GPU # @@ -64,6 +62,7 @@ endif() # TRITON_ENABLE_GPU # # Minimum of 1.78 required for use of boost::span. This can eventually be # relaxed and replaced with std::span in C++20. +cmake_policy (SET CMP0167 OLD) find_package(Boost 1.78 REQUIRED COMPONENTS) message(STATUS "Using Boost ${Boost_VERSION}") @@ -371,13 +370,13 @@ if(${TRITON_ENABLE_GPU}) PRIVATE TRITON_MIN_COMPUTE_CAPABILITY=${TRITON_MIN_COMPUTE_CAPABILITY} ) - if(CUDA_VERSION VERSION_GREATER "10.1" OR CUDA_VERSION VERSION_EQUAL "10.1") + if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL "10.1") target_compile_definitions( triton-core PRIVATE TRITON_ENABLE_CUDA_GRAPH=1 ) else() - message(WARNING "CUDA ${CUDA_VERSION} does not support CUDA graphs.") + message(WARNING "CUDA ${CUDAToolkit_VERSION} does not support CUDA graphs.") endif() endif() # TRITON_ENABLE_GPU diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 2df718b30..f0225b5f8 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2019-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2019-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -24,7 +24,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.31.8) # # Unit tests