Skip to content

Commit 3bd2005

Browse files
committed
Update cmake configuration
1 parent c05d68f commit 3bd2005

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ FetchContent_MakeAvailable(repo-common)
5555
#
5656
if(${TRITON_ENABLE_GPU})
5757
find_package(CUDAToolkit REQUIRED)
58-
find_package(CUDA REQUIRED)
59-
message(STATUS "Using CUDA ${CUDA_VERSION}")
6058
endif() # TRITON_ENABLE_GPU
6159

6260
#
@@ -371,13 +369,13 @@ if(${TRITON_ENABLE_GPU})
371369
PRIVATE TRITON_MIN_COMPUTE_CAPABILITY=${TRITON_MIN_COMPUTE_CAPABILITY}
372370
)
373371

374-
if(CUDA_VERSION VERSION_GREATER "10.1" OR CUDA_VERSION VERSION_EQUAL "10.1")
372+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL "10.1")
375373
target_compile_definitions(
376374
triton-core
377375
PRIVATE TRITON_ENABLE_CUDA_GRAPH=1
378376
)
379377
else()
380-
message(WARNING "CUDA ${CUDA_VERSION} does not support CUDA graphs.")
378+
message(WARNING "CUDA ${CUDAToolkit_VERSION} does not support CUDA graphs.")
381379
endif()
382380
endif() # TRITON_ENABLE_GPU
383381

0 commit comments

Comments
 (0)