2018-11-26 12:37:24 -08:00
|
|
|
# Copyright 2018 Google LLC
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
# https://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.
|
|
|
|
|
|
|
|
# JAX is Autograd and XLA
|
|
|
|
|
2019-11-24 13:06:23 -05:00
|
|
|
load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda")
|
2020-11-10 00:23:54 +08:00
|
|
|
load("@org_tensorflow//tensorflow:tensorflow.bzl", "if_not_windows")
|
2019-08-02 11:16:15 -04:00
|
|
|
|
2018-11-26 12:37:24 -08:00
|
|
|
licenses(["notice"]) # Apache 2
|
|
|
|
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2020-11-10 00:23:54 +08:00
|
|
|
py_binary(
|
2020-11-20 09:10:02 -05:00
|
|
|
name = "build_wheel",
|
|
|
|
srcs = ["build_wheel.py"],
|
2018-11-26 12:37:24 -08:00
|
|
|
data = [
|
|
|
|
"@org_tensorflow//tensorflow/compiler/xla/python:xla_client",
|
2019-04-01 08:21:22 -07:00
|
|
|
"//jaxlib",
|
2018-12-17 14:36:21 -05:00
|
|
|
"//jaxlib:lapack.so",
|
2020-10-23 14:20:06 -07:00
|
|
|
"//jaxlib:_pocketfft.so",
|
|
|
|
"//jaxlib:pocketfft_flatbuffers_py",
|
2020-11-10 00:23:54 +08:00
|
|
|
] + if_not_windows([
|
|
|
|
"@org_tensorflow//tensorflow/compiler/xla/python/tpu_driver/client:py_tpu_client",
|
|
|
|
]) + if_cuda([
|
2019-08-08 11:50:31 -04:00
|
|
|
"//jaxlib:cublas_kernels",
|
2019-08-02 11:16:15 -04:00
|
|
|
"//jaxlib:cusolver_kernels",
|
2019-11-24 13:06:23 -05:00
|
|
|
"//jaxlib:cuda_prng_kernels",
|
2019-08-02 11:16:15 -04:00
|
|
|
]),
|
2020-11-10 00:23:54 +08:00
|
|
|
deps = ["@bazel_tools//tools/python/runfiles"],
|
2018-11-26 12:37:24 -08:00
|
|
|
)
|