Skip to content

Commit ea7ec9f

Browse files
authored
build: TPRD-1622 - Update version to CMake 4.0 or 3.31 ( 3.31.8 ) which has support for CUDA new layout (#56)
* build: TPRD-1622 - Update version to CMake 4.0 or 3.31 ( 3.31.8 ) which has support for CUDA new layout * build: TPRD-1622 - Update version to CMake 4.0 or 3.31 ( 3.31.8 ) which has support for CUDA new layout * Update cmake configuration
1 parent d557591 commit ea7ec9f

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

server/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# Redistribution and use in source and binary forms, with or without
44
# modification, are permitted provided that the following conditions
@@ -24,7 +24,7 @@
2424
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

27-
cmake_minimum_required(VERSION 3.18)
27+
cmake_minimum_required(VERSION 3.31.8)
2828

2929
project(tritondevelopertoolsserver LANGUAGES C CXX)
3030

@@ -68,14 +68,12 @@ FetchContent_MakeAvailable(repo-common repo-core)
6868
#
6969
if(${TRITON_ENABLE_GPU})
7070
find_package(CUDAToolkit REQUIRED)
71-
find_package(CUDA REQUIRED)
72-
message(STATUS "Using CUDA ${CUDA_VERSION}")
7371
set(CUDA_NVCC_FLAGS -std=c++11)
7472

75-
if(CUDA_VERSION VERSION_GREATER "10.1" OR CUDA_VERSION VERSION_EQUAL "10.1")
73+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL "10.1")
7674
add_definitions(-DTRITON_ENABLE_CUDA_GRAPH=1)
7775
else()
78-
message(WARNING "CUDA ${CUDA_VERSION} does not support CUDA graphs.")
76+
message(WARNING "CUDA ${CUDAToolkit_VERSION} does not support CUDA graphs.")
7977
endif()
8078
endif() # TRITON_ENABLE_GPU
8179

server/examples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# Redistribution and use in source and binary forms, with or without
44
# modification, are permitted provided that the following conditions
@@ -24,7 +24,7 @@
2424
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

27-
cmake_minimum_required(VERSION 3.18)
27+
cmake_minimum_required(VERSION 3.31.8)
2828

2929
#
3030
# examples

server/install_dependencies_and_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ apt update -q=2 \
3636
&& . /etc/os-release \
3737
&& echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $UBUNTU_CODENAME main" | tee /etc/apt/sources.list.d/kitware.list >/dev/null \
3838
&& apt-get update -q=2 \
39-
&& apt-get install -y --no-install-recommends cmake=3.28.3* cmake-data=3.28.3* \
39+
&& apt-get install -y --no-install-recommends cmake=4.0.3* cmake-data=4.0.3* \
4040
&& cmake --version
4141

4242
# Install developer tools

server/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# Redistribution and use in source and binary forms, with or without
44
# modification, are permitted provided that the following conditions
@@ -24,7 +24,7 @@
2424
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

27-
cmake_minimum_required(VERSION 3.18)
27+
cmake_minimum_required(VERSION 3.31.8)
2828

2929
#
3030
# Unit tests

0 commit comments

Comments
 (0)