Skip to content

Commit

Permalink
Test cuco hyperloglog version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Oct 1, 2024
1 parent 90e62e0 commit c8972c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rapids_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================

set(rapids-cmake-repo PointKernel/rapids-cmake)
set(rapids-cmake-branch fetch-hll)

file(READ "${CMAKE_CURRENT_LIST_DIR}/VERSION" _rapids_version)
if(_rapids_version MATCHES [[^([0-9][0-9])\.([0-9][0-9])\.([0-9][0-9])]])
set(RAPIDS_VERSION_MAJOR "${CMAKE_MATCH_1}")
Expand All @@ -22,13 +26,15 @@ else()
string(REPLACE "\n" "\n " _rapids_version_formatted " ${_rapids_version}")
message(
FATAL_ERROR
"Could not determine RAPIDS version. Contents of VERSION file:\n${_rapids_version_formatted}")
"Could not determine RAPIDS version. Contents of VERSION file:\n${_rapids_version_formatted}"
)
endif()

if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS-${RAPIDS_VERSION_MAJOR_MINOR}.cmake")
file(
DOWNLOAD
"https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-${RAPIDS_VERSION_MAJOR_MINOR}/RAPIDS.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS-${RAPIDS_VERSION_MAJOR_MINOR}.cmake")
"${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS-${RAPIDS_VERSION_MAJOR_MINOR}.cmake"
)
endif()
include("${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS-${RAPIDS_VERSION_MAJOR_MINOR}.cmake")

0 comments on commit c8972c8

Please sign in to comment.