Skip to content

Commit

Permalink
remove version range for CUDAToolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
arminms committed Oct 12, 2023
1 parent c86cf31 commit 5dd4726
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ if(${P2RNG_TARGET_API} STREQUAL cuda)
check_language(CUDA)
if(CMAKE_CUDA_COMPILER)
enable_language(CUDA)
find_package(CUDAToolkit 11...12 REQUIRED)
find_package(CUDAToolkit 11 REQUIRED)
else()
message(FATAL_ERROR "No CUDA support found")
endif()
Expand Down Expand Up @@ -123,7 +123,7 @@ endif()
if (NOT NOT_SUBPROJECT)
list(FIND P2RNG_COMPONENTS cuda DEPENDS_ON_CUDA)
if (DEPENDS_ON_CUDA GREATER -1)
find_package(CUDAToolkit 11...12 QUIET)
find_package(CUDAToolkit 11 QUIET)
endif()

list(FIND P2RNG_COMPONENTS rocm DEPENDS_ON_ROCM)
Expand Down
2 changes: 1 addition & 1 deletion cmake/p2rng-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include ( "${CMAKE_CURRENT_LIST_DIR}/p2rng-targets.cmake" )

foreach(_comp ${p2rng_FIND_COMPONENTS})
if (${_comp} STREQUAL cuda)
find_dependency(CUDAToolkit 11...12 REQUIRED)
find_dependency(CUDAToolkit 11 REQUIRED)
elseif(${_comp} STREQUAL oneapi)
find_dependency(IntelDPCPP REQUIRED)
find_dependency(oneDPL REQUIRED)
Expand Down

0 comments on commit 5dd4726

Please sign in to comment.