rapids_cmake_download_with_retry

Added in version v25.06.00.

Downloads a file from a URL with retry logic for handling network issues.

rapids_cmake_download_with_retry(url output_file sha256 [MAX_RETRIES <max_retries>] [RETRY_DELAY <retry_delay>])

This function will attempt to download the file multiple times if network issues occur. It verifies the download by checking the SHA256 checksum of the downloaded file. If all retries fail, it will raise a fatal error.

url

The URL to download from.

output_file

The path where the downloaded file should be saved.

sha256

The expected SHA256 checksum of the file.

MAX_RETRIES

Maximum number of retry attempts. Defaults to 10.

RETRY_DELAY

Delay between retries in seconds. Defaults to 5.