Skip to content

Commit

Permalink
make only win32 and 11.6 use external/cub (#44005)
Browse files Browse the repository at this point in the history
  • Loading branch information
betterpig authored Jul 1, 2022
1 parent fde34eb commit 3cc6ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/third_party.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ if(WITH_ONNXRUNTIME)
endif()

if(WITH_GPU)
if (${CMAKE_CUDA_COMPILER_VERSION} LESS 11.0 OR ${CMAKE_CUDA_COMPILER_VERSION}
GREATER_EQUAL 11.6)
if(${CMAKE_CUDA_COMPILER_VERSION} LESS 11.0
OR (WIN32 AND ${CMAKE_CUDA_COMPILER_VERSION} GREATER_EQUAL 11.6))
include(external/cub) # download cub
list(APPEND third_party_deps extern_cub)
endif()
Expand Down

0 comments on commit 3cc6ae6

Please sign in to comment.