# Copyright 2026 The OpenXLA Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================= """Provides the repository macro to import rmm.""" load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") def tensorflow_repo(): """Imports rmm.""" RMM_VERSION = "25.08.00" RMM_SHA256 = "6931f4de923b617af8c3b97505d79fd3b7b6b5492c1b5a8cd8bcfdc147cdf458" tf_http_archive( name = "rmm", sha256 = RMM_SHA256, strip_prefix = "rmm-{version}".format(version = RMM_VERSION), urls = tf_mirror_urls("https://github.com/rapidsai/rmm/archive/refs/tags/v{version}.tar.gz".format(version = RMM_VERSION)), build_file = "//third_party/rmm:rmm.BUILD", patch_file = ["//third_party/rmm:logger_macros.hpp.patch"], ) def xla_repo(): """Imports rmm.""" RMM_VERSION = "26.02.00" RMM_SHA256 = "f7460ec9f177d79e8a709b7011cd11392059bcbd906336f4f5b90ef2b5547683" tf_http_archive( name = "rmm", sha256 = RMM_SHA256, strip_prefix = "rmm-{version}".format(version = RMM_VERSION), urls = tf_mirror_urls("https://github.com/rapidsai/rmm/archive/refs/tags/v{version}.tar.gz".format(version = RMM_VERSION)), build_file = "//third_party/rmm:rmm.BUILD", patch_file = ["//third_party/rmm:logger_macros.hpp.patch"], )