early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

74
externals/vcpkg/ports/halide/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,74 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
set(HALIDE_VERSION_TAG v14.0.0)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO halide/Halide
REF ${HALIDE_VERSION_TAG}
SHA512 c7b1186cca545f30d038f1e9bb28ca7231023869d191c50722213da4c7e9adfd4a53129fe395cd7938cb7cb3fb1bf80f9cd3b4b8473a0246f15b9ad8d3e40fe2
HEAD_REF release/14.x
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
target-aarch64 TARGET_AARCH64
target-amdgpu TARGET_AMDGPU
target-arm TARGET_ARM
target-d3d12compute TARGET_D3D12COMPUTE
target-hexagon TARGET_HEXAGON
target-metal TARGET_METAL
target-mips TARGET_MIPS
target-nvptx TARGET_NVPTX
target-opencl TARGET_OPENCL
target-powerpc TARGET_POWERPC
target-riscv TARGET_RISCV
target-x86 TARGET_X86
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS ${FEATURE_OPTIONS}
-DWITH_DOCS=NO
-DWITH_PYTHON_BINDINGS=NO
-DWITH_TESTS=NO
-DWITH_TUTORIALS=NO
-DWITH_UTILS=NO
-DCMAKE_INSTALL_LIBDIR=bin
-DCMAKE_INSTALL_DATADIR=share/${PORT}
-DHalide_INSTALL_CMAKEDIR=share/${PORT}
-DHalide_INSTALL_HELPERSDIR=share/HalideHelpers
-DHalide_INSTALL_PLUGINDIR=bin
)
# ADD_BIN_TO_PATH needed to compile autoschedulers,
# which use Halide.dll (and deps) during the build.
vcpkg_cmake_install(ADD_BIN_TO_PATH)
vcpkg_copy_tools(
TOOL_NAMES
featurization_to_sample
get_host_target
retrain_cost_model
weightsdir_to_weightsfile
AUTO_CLEAN
)
# Release mode MODULE targets in CMake don't get PDBs.
# Exclude those to avoid warning with default globs.
vcpkg_copy_pdbs(
BUILD_PATHS
"${CURRENT_PACKAGES_DIR}/bin/Halide.dll"
"${CURRENT_PACKAGES_DIR}/debug/bin/*.dll"
)
vcpkg_cmake_config_fixup()
vcpkg_cmake_config_fixup(PACKAGE_NAME HalideHelpers)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/tutorial)
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
configure_file(${CMAKE_CURRENT_LIST_DIR}/usage.in ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY)

27
externals/vcpkg/ports/halide/usage.in vendored Executable file
View File

@@ -0,0 +1,27 @@
The package halide provides CMake targets:
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)
find_package(Halide REQUIRED)
# JIT mode:
add_executable(my_halide_app main.cpp)
target_link_libraries(my_halide_app PRIVATE Halide::Halide)
# AOT mode:
add_executable(my_generators my_generators.cpp)
target_link_libraries(my_generators PRIVATE Halide::Generator)
add_halide_library(my_first_generator FROM my_generators)
add_halide_library(my_second_generator FROM my_generators
PARAMS parallel=false scale=3.0 rotation=ccw output.type=uint16)
add_halide_library(my_second_generator_2 FROM my_generators
GENERATOR my_second_generator
PARAMS scale=9.0 rotation=ccw output.type=float32)
add_halide_library(my_second_generator_3 FROM my_generators
GENERATOR my_second_generator
PARAMS parallel=false output.type=float64)
For more information see:
https://github.com/halide/Halide/blob/@HALIDE_VERSION_TAG@/README_cmake.md

206
externals/vcpkg/ports/halide/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,206 @@
{
"name": "halide",
"version": "14.0.0",
"description": "Halide is a programming language designed to make it easier to write high-performance image and array processing code on modern machines.",
"homepage": "https://github.com/halide/Halide",
"supports": "!uwp",
"dependencies": [
{
"name": "llvm",
"features": [
"clang",
"enable-rtti",
"tools"
]
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"jit"
],
"features": {
"jit": {
"description": "Include targets required for jit compilation",
"dependencies": [
{
"name": "halide",
"default-features": false,
"features": [
"target-aarch64"
],
"platform": "arm64"
},
{
"name": "halide",
"default-features": false,
"features": [
"target-x86"
],
"platform": "x86 | x64"
},
{
"name": "halide",
"default-features": false,
"features": [
"target-arm"
],
"platform": "arm & !arm64"
},
{
"name": "halide",
"features": [
"target-all"
],
"platform": "!x86 & !x64 & !arm & !arm64"
}
]
},
"target-aarch64": {
"description": "Include AArch64 target",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"target-aarch64"
]
}
]
},
"target-all": {
"description": "Include all targets",
"dependencies": [
{
"name": "halide",
"default-features": false,
"features": [
"target-aarch64",
"target-amdgpu",
"target-arm",
"target-d3d12compute",
"target-hexagon",
"target-metal",
"target-mips",
"target-nvptx",
"target-opencl",
"target-powerpc",
"target-riscv",
"target-x86"
]
}
]
},
"target-amdgpu": {
"description": "Include AMDGPU target",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"target-amdgpu"
]
}
]
},
"target-arm": {
"description": "Include ARM target",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"target-arm"
]
}
]
},
"target-d3d12compute": {
"description": "Include Direct3D 12 Compute target"
},
"target-hexagon": {
"description": "Include Hexagon target",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"target-hexagon"
]
}
]
},
"target-metal": {
"description": "Include Metal target"
},
"target-mips": {
"description": "Include Mips target",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"target-mips"
]
}
]
},
"target-nvptx": {
"description": "Include NVPTX target",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"target-nvptx"
]
}
]
},
"target-opencl": {
"description": "Include OpenCL-C target"
},
"target-powerpc": {
"description": "Include PowerPC target",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"target-powerpc"
]
}
]
},
"target-riscv": {
"description": "Include RISCV target",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"target-riscv"
]
}
]
},
"target-x86": {
"description": "Include X86 target",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"target-x86"
]
}
]
}
}
}