chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])
@@ -0,0 +1,18 @@
/* Copyright 2019 The TensorFlow 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.
==============================================================================*/
#include <vulkan/vulkan.hpp>
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE
+74
View File
@@ -0,0 +1,74 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
exports_files(["LICENSE"])
VULKAN_HDRS = [
"include/vulkan/vk_platform.h",
"include/vulkan/vk_sdk_platform.h",
"include/vulkan/vulkan.h",
"include/vulkan/vulkan_core.h",
]
VULKAN_TEXTUAL_HDRS = [
"include/vulkan/vulkan_android.h",
"include/vulkan/vulkan_fuchsia.h",
"include/vulkan/vulkan_ggp.h",
"include/vulkan/vulkan_ios.h",
"include/vulkan/vulkan_macos.h",
"include/vulkan/vulkan_metal.h",
"include/vulkan/vulkan_vi.h",
"include/vulkan/vulkan_wayland.h",
"include/vulkan/vulkan_win32.h",
"include/vulkan/vulkan_xcb.h",
"include/vulkan/vulkan_xlib.h",
"include/vulkan/vulkan_xlib_xrandr.h",
]
# The main vulkan public headers for applications. This excludes headers
# designed for ICDs and layers.
cc_library(
name = "vulkan_headers",
hdrs = VULKAN_HDRS,
includes = ["include"],
textual_hdrs = VULKAN_TEXTUAL_HDRS,
)
# Like :vulkan_headers but defining VK_NO_PROTOTYPES to disable the
# inclusion of C function prototypes. Useful if dynamically loading
# all symbols via dlopen/etc.
cc_library(
name = "vulkan_headers_no_prototypes",
hdrs = VULKAN_HDRS,
defines = ["VK_NO_PROTOTYPES"],
includes = ["include"],
textual_hdrs = VULKAN_TEXTUAL_HDRS,
)
# Provides a C++-ish interface to Vulkan. A rational set of defines are also
# set and transitively applied to any callers, as well as providing the
# necessary storage as the set of defines leaves symbols undefined otherwise.
cc_library(
name = "vulkan_hpp",
srcs =
select({
"@xla//xla/tsl:macos": [],
"@xla//xla/tsl:ios": [],
"//conditions:default": ["tensorflow/vulkan_hpp_dispatch_loader_dynamic.cc"],
}),
hdrs = ["include/vulkan/vulkan.hpp"],
defines = [
"VULKAN_HPP_ASSERT=",
"VULKAN_HPP_DISABLE_IMPLICIT_RESULT_VALUE_CAST",
"VULKAN_HPP_NO_EXCEPTIONS",
"VULKAN_HPP_TYPESAFE_CONVERSION",
"VULKAN_HPP_TYPESAFE_EXPLICIT",
] + select({
"@xla//xla/tsl:macos": [],
"@xla//xla/tsl:ios": [],
"//conditions:default": ["VULKAN_HPP_DISPATCH_LOADER_DYNAMIC"],
}),
includes = ["include"],
deps = [":vulkan_headers"],
)
+17
View File
@@ -0,0 +1,17 @@
"""Loads Vulkan-Headers, used by TF Lite."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
tf_http_archive(
name = "vulkan_headers",
# LINT.IfChange
strip_prefix = "Vulkan-Headers-32c07c0c5334aea069e518206d75e002ccd85389",
sha256 = "602aedcc4c6057473d0f7fee1bcc3aa01bf191371b2b5bbca949cebc03cf393a",
link_files = {
"//third_party/vulkan_headers:tensorflow/vulkan_hpp_dispatch_loader_dynamic.cc": "tensorflow/vulkan_hpp_dispatch_loader_dynamic.cc",
},
urls = tf_mirror_urls("https://github.com/KhronosGroup/Vulkan-Headers/archive/32c07c0c5334aea069e518206d75e002ccd85389.tar.gz"),
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/vulkan_headers.cmake)
build_file = "//third_party/vulkan_headers:vulkan_headers.BUILD",
)