1# Copyright 2017 The TensorFlow Authors. All Rights Reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# ============================================================================== 15 16load("//tensorflow/core/platform:rules_cc.bzl", "cc_library") 17 18"""Configuration file for an XLA plugin. 19 20 please don't check in changes to this file. to prevent changes appearing 21 in git status, use: 22 23 git update-index --assume-unchanged tensorflow/compiler/plugin/BUILD 24 25 To add additional devices to the XLA subsystem, add targets to the 26 dependency list in the 'plugin' target. For instance: 27 28 deps = ["//tensorflow/compiler/plugin/example:plugin_lib"], 29 30 ** Please don't remove this file - it is supporting some 3rd party plugins ** 31""" 32 33package( 34 default_visibility = ["//visibility:public"], 35 licenses = ["notice"], 36) 37 38cc_library( 39 name = "plugin", 40 deps = [ 41 #"//tensorflow/compiler/plugin/example:example_lib", 42 ], 43) 44 45# This target is added purely for the purpose of ensuring that `:xla_device` is 46# always publicly visible to external XLA backend/plugin developers. 47cc_library( 48 name = "plugin_device", 49 deps = [ 50 "//tensorflow/compiler/jit:xla_device", 51 ], 52) 53