File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,6 @@ FetchContent_MakeAvailable(repo-common)
55
55
#
56
56
if (${TRITON_ENABLE_GPU} )
57
57
find_package (CUDAToolkit REQUIRED )
58
- find_package (CUDA REQUIRED )
59
- message (STATUS "Using CUDA ${CUDA_VERSION} " )
60
58
endif () # TRITON_ENABLE_GPU
61
59
62
60
#
@@ -371,13 +369,13 @@ if(${TRITON_ENABLE_GPU})
371
369
PRIVATE TRITON_MIN_COMPUTE_CAPABILITY=${TRITON_MIN_COMPUTE_CAPABILITY}
372
370
)
373
371
374
- if (CUDA_VERSION VERSION_GREATER "10.1" OR CUDA_VERSION VERSION_EQUAL "10.1" )
372
+ if (CUDAToolkit_VERSION VERSION_GREATER_EQUAL "10.1" )
375
373
target_compile_definitions (
376
374
triton-core
377
375
PRIVATE TRITON_ENABLE_CUDA_GRAPH=1
378
376
)
379
377
else ()
380
- message (WARNING "CUDA ${CUDA_VERSION } does not support CUDA graphs." )
378
+ message (WARNING "CUDA ${CUDAToolkit_VERSION } does not support CUDA graphs." )
381
379
endif ()
382
380
endif () # TRITON_ENABLE_GPU
383
381
You can’t perform that action at this time.
0 commit comments