| 1 |
# Copyright (c) Facebook, Inc. and its affiliates. |
| 2 |
# |
| 3 |
# This source code is licensed under the MIT license found in the |
| 4 |
# LICENSE file in the root directory of this source tree. |
| 5 |
# ============================================================================= |
| 6 |
# Copyright (c) 2023-2024, NVIDIA CORPORATION. |
| 7 |
# |
| 8 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 9 |
# in compliance with the License. You may obtain a copy of the License at |
| 10 |
# |
| 11 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 12 |
# |
| 13 |
# Unless required by applicable law or agreed to in writing, software distributed under the License |
| 14 |
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 15 |
# or implied. See the License for the specific language governing permissions and limitations under |
| 16 |
# the License. |
| 17 |
# ============================================================================= |
| 18 |
set(RAPIDS_VERSION "25.10") |
| 19 |
set(rapids-cmake-version ${RAPIDS_VERSION}) |
| 20 |
|
| 21 |
if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/FAISS_RAPIDS.cmake) |
| 22 |
file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-${RAPIDS_VERSION}/RAPIDS.cmake |
| 23 |
${CMAKE_CURRENT_BINARY_DIR}/FAISS_RAPIDS.cmake) |
| 24 |
endif() |
| 25 |
include(${CMAKE_CURRENT_BINARY_DIR}/FAISS_RAPIDS.cmake) |