diff --git a/conda/environments/cuspatial_dev_cuda11.0.yml b/conda/environments/cuspatial_dev_cuda11.0.yml index 8d371c241..4f1ad7553 100644 --- a/conda/environments/cuspatial_dev_cuda11.0.yml +++ b/conda/environments/cuspatial_dev_cuda11.0.yml @@ -7,7 +7,7 @@ channels: dependencies: - clang=8.0.1 - clang-tools=8.0.1 - - cudf=0.20.* + - cudf=21.06.* - cudatoolkit=11.0 - gdal>=3.0.2 - geopandas=0.7.0 diff --git a/conda/environments/cuspatial_dev_cuda11.1.yml b/conda/environments/cuspatial_dev_cuda11.1.yml index ebf912ad5..b87c1dce7 100644 --- a/conda/environments/cuspatial_dev_cuda11.1.yml +++ b/conda/environments/cuspatial_dev_cuda11.1.yml @@ -7,11 +7,11 @@ channels: dependencies: - clang=8.0.1 - clang-tools=8.0.1 - - cudf=0.20.* + - cudf=21.06.* - cudatoolkit=11.1 - gdal>=3.0.2 - geopandas=0.7.0 - - cmake>=3.14 + - cmake>=3.18 - cython>=0.29,<0.30 - gtest - gmock diff --git a/conda/environments/cuspatial_dev_cuda11.2.yml b/conda/environments/cuspatial_dev_cuda11.2.yml index d370e1f85..6fec8297f 100644 --- a/conda/environments/cuspatial_dev_cuda11.2.yml +++ b/conda/environments/cuspatial_dev_cuda11.2.yml @@ -7,11 +7,11 @@ channels: dependencies: - clang=8.0.1 - clang-tools=8.0.1 - - cudf=0.20.* + - cudf=21.06.* - cudatoolkit=11.2 - gdal>=3.0.2 - geopandas=0.7.0 - - cmake>=3.14 + - cmake>=3.18 - cython>=0.29,<0.30 - gtest - gmock diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 9530dc472..1c5cd5969 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -28,7 +28,7 @@ elseif(CMAKE_CUDA_ARCHITECTURES STREQUAL "") set(CUSPATIAL_BUILD_FOR_DETECTED_ARCHS TRUE) endif() -project(CUSPATIAL VERSION 0.20.0 LANGUAGES C CXX) +project(CUSPATIAL VERSION 21.06.00 LANGUAGES C CXX) # Needed because GoogleBenchmark changes the state of FindThreads.cmake, # causing subsequent runs to have different values for the `Threads::Threads` target. diff --git a/cpp/cmake/thirdparty/CUSPATIAL_GetCUDF.cmake b/cpp/cmake/thirdparty/CUSPATIAL_GetCUDF.cmake index 20862bf48..8a84bb7c6 100644 --- a/cpp/cmake/thirdparty/CUSPATIAL_GetCUDF.cmake +++ b/cpp/cmake/thirdparty/CUSPATIAL_GetCUDF.cmake @@ -20,10 +20,16 @@ function(find_and_configure_cudf VERSION) return() endif() + if(${VERSION} MATCHES [=[([0-9]+)\.([0-9]+)\.([0-9]+)]=]) + set(MAJOR_AND_MINOR "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}") + else() + set(MAJOR_AND_MINOR "${VERSION}") + endif() + CPMFindPackage(NAME cudf VERSION ${VERSION} GIT_REPOSITORY https://github.com/rapidsai/cudf.git - GIT_TAG branch-${VERSION} + GIT_TAG branch-${MAJOR_AND_MINOR} GIT_SHALLOW TRUE SOURCE_SUBDIR cpp OPTIONS "BUILD_TESTS OFF" @@ -36,6 +42,6 @@ function(find_and_configure_cudf VERSION) fix_cmake_global_defaults(cudf::cudftestutil) endfunction() -set(CUSPATIAL_MIN_VERSION_cudf "${CUSPATIAL_VERSION_MAJOR}.${CUSPATIAL_VERSION_MINOR}") +set(CUSPATIAL_MIN_VERSION_cudf "${CUSPATIAL_VERSION_MAJOR}.${CUSPATIAL_VERSION_MINOR}.00") find_and_configure_cudf(${CUSPATIAL_MIN_VERSION_cudf})