halide 19.0.0__cp310-cp310-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- halide/__init__.py +39 -0
- halide/_generator_helpers.py +835 -0
- halide/bin/Halide.dll +0 -0
- halide/bin/adams2019_retrain_cost_model.exe +0 -0
- halide/bin/adams2019_weightsdir_to_weightsfile.exe +0 -0
- halide/bin/anderson2021_retrain_cost_model.exe +0 -0
- halide/bin/anderson2021_weightsdir_to_weightsfile.exe +0 -0
- halide/bin/featurization_to_sample.exe +0 -0
- halide/bin/gengen.exe +0 -0
- halide/bin/get_host_target.exe +0 -0
- halide/halide_.cp310-win_amd64.pyd +0 -0
- halide/imageio.py +60 -0
- halide/include/Halide.h +35293 -0
- halide/include/HalideBuffer.h +2618 -0
- halide/include/HalidePyTorchCudaHelpers.h +64 -0
- halide/include/HalidePyTorchHelpers.h +120 -0
- halide/include/HalideRuntime.h +2221 -0
- halide/include/HalideRuntimeCuda.h +89 -0
- halide/include/HalideRuntimeD3D12Compute.h +91 -0
- halide/include/HalideRuntimeHexagonDma.h +104 -0
- halide/include/HalideRuntimeHexagonHost.h +157 -0
- halide/include/HalideRuntimeMetal.h +112 -0
- halide/include/HalideRuntimeOpenCL.h +119 -0
- halide/include/HalideRuntimeQurt.h +32 -0
- halide/include/HalideRuntimeVulkan.h +137 -0
- halide/include/HalideRuntimeWebGPU.h +44 -0
- halide/lib/Halide.lib +0 -0
- halide/lib/HalidePyStubs.lib +0 -0
- halide/lib/Halide_GenGen.lib +0 -0
- halide/lib/autoschedule_adams2019.dll +0 -0
- halide/lib/autoschedule_anderson2021.dll +0 -0
- halide/lib/autoschedule_li2018.dll +0 -0
- halide/lib/autoschedule_mullapudi2016.dll +0 -0
- halide/lib/cmake/Halide/FindHalide_LLVM.cmake +152 -0
- halide/lib/cmake/Halide/FindV8.cmake +33 -0
- halide/lib/cmake/Halide/Halide-shared-deps.cmake +0 -0
- halide/lib/cmake/Halide/Halide-shared-targets-release.cmake +29 -0
- halide/lib/cmake/Halide/Halide-shared-targets.cmake +154 -0
- halide/lib/cmake/Halide/HalideConfig.cmake +162 -0
- halide/lib/cmake/Halide/HalideConfigVersion.cmake +65 -0
- halide/lib/cmake/HalideHelpers/FindHalide_WebGPU.cmake +27 -0
- halide/lib/cmake/HalideHelpers/Halide-Interfaces-release.cmake +112 -0
- halide/lib/cmake/HalideHelpers/Halide-Interfaces.cmake +236 -0
- halide/lib/cmake/HalideHelpers/HalideGeneratorHelpers.cmake +1056 -0
- halide/lib/cmake/HalideHelpers/HalideHelpersConfig.cmake +28 -0
- halide/lib/cmake/HalideHelpers/HalideHelpersConfigVersion.cmake +54 -0
- halide/lib/cmake/HalideHelpers/HalideTargetHelpers.cmake +99 -0
- halide/lib/cmake/HalideHelpers/MutexCopy.ps1 +31 -0
- halide/lib/cmake/HalideHelpers/TargetExportScript.cmake +55 -0
- halide/lib/cmake/Halide_Python/Halide_Python-targets-release.cmake +29 -0
- halide/lib/cmake/Halide_Python/Halide_Python-targets.cmake +125 -0
- halide/lib/cmake/Halide_Python/Halide_PythonConfig.cmake +26 -0
- halide/lib/cmake/Halide_Python/Halide_PythonConfigVersion.cmake +65 -0
- halide/share/doc/Halide/LICENSE.txt +233 -0
- halide/share/doc/Halide/README.md +439 -0
- halide/share/doc/Halide/doc/BuildingHalideWithCMake.md +626 -0
- halide/share/doc/Halide/doc/CodeStyleCMake.md +393 -0
- halide/share/doc/Halide/doc/FuzzTesting.md +104 -0
- halide/share/doc/Halide/doc/HalideCMakePackage.md +812 -0
- halide/share/doc/Halide/doc/Hexagon.md +73 -0
- halide/share/doc/Halide/doc/Python.md +844 -0
- halide/share/doc/Halide/doc/RunGen.md +283 -0
- halide/share/doc/Halide/doc/Testing.md +125 -0
- halide/share/doc/Halide/doc/Vulkan.md +287 -0
- halide/share/doc/Halide/doc/WebAssembly.md +228 -0
- halide/share/doc/Halide/doc/WebGPU.md +128 -0
- halide/share/tools/RunGen.h +1470 -0
- halide/share/tools/RunGenMain.cpp +642 -0
- halide/share/tools/adams2019_autotune_loop.sh +227 -0
- halide/share/tools/anderson2021_autotune_loop.sh +591 -0
- halide/share/tools/halide_benchmark.h +240 -0
- halide/share/tools/halide_image.h +31 -0
- halide/share/tools/halide_image_info.h +318 -0
- halide/share/tools/halide_image_io.h +2794 -0
- halide/share/tools/halide_malloc_trace.h +102 -0
- halide/share/tools/halide_thread_pool.h +161 -0
- halide/share/tools/halide_trace_config.h +559 -0
- halide-19.0.0.data/data/share/cmake/Halide/HalideConfig.cmake +6 -0
- halide-19.0.0.data/data/share/cmake/Halide/HalideConfigVersion.cmake +65 -0
- halide-19.0.0.data/data/share/cmake/HalideHelpers/HalideHelpersConfig.cmake +6 -0
- halide-19.0.0.data/data/share/cmake/HalideHelpers/HalideHelpersConfigVersion.cmake +54 -0
- halide-19.0.0.dist-info/METADATA +301 -0
- halide-19.0.0.dist-info/RECORD +85 -0
- halide-19.0.0.dist-info/WHEEL +5 -0
- halide-19.0.0.dist-info/licenses/LICENSE.txt +233 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
cmake_minimum_required(VERSION 3.28)
|
2
|
+
|
3
|
+
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
4
|
+
####### Any changes to this file will be overwritten by the next CMake run ####
|
5
|
+
####### The input file was HalideHelpersConfig.cmake ########
|
6
|
+
|
7
|
+
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
|
8
|
+
|
9
|
+
macro(check_required_components _NAME)
|
10
|
+
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
11
|
+
if(NOT ${_NAME}_${comp}_FOUND)
|
12
|
+
if(${_NAME}_FIND_REQUIRED_${comp})
|
13
|
+
set(${_NAME}_FOUND FALSE)
|
14
|
+
endif()
|
15
|
+
endif()
|
16
|
+
endforeach()
|
17
|
+
endmacro()
|
18
|
+
|
19
|
+
####################################################################################
|
20
|
+
|
21
|
+
set(Halide_HOST_TARGET x86-64-windows)
|
22
|
+
|
23
|
+
include(${CMAKE_CURRENT_LIST_DIR}/Halide-Interfaces.cmake)
|
24
|
+
include(${CMAKE_CURRENT_LIST_DIR}/HalideTargetHelpers.cmake)
|
25
|
+
include(${CMAKE_CURRENT_LIST_DIR}/HalideGeneratorHelpers.cmake)
|
26
|
+
include(${CMAKE_CURRENT_LIST_DIR}/TargetExportScript.cmake)
|
27
|
+
|
28
|
+
check_required_components(${CMAKE_FIND_PACKAGE_NAME})
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# This is a basic version file for the Config-mode of find_package().
|
2
|
+
# It is used by write_basic_package_version_file() as input file for configure_file()
|
3
|
+
# to create a version-file which can be installed along a config.cmake file.
|
4
|
+
#
|
5
|
+
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
6
|
+
# the requested version string are exactly the same and it sets
|
7
|
+
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
|
8
|
+
# but only if the requested major version is the same as the current one.
|
9
|
+
# The variable CVF_VERSION must be set before calling configure_file().
|
10
|
+
|
11
|
+
|
12
|
+
set(PACKAGE_VERSION "19.0.0")
|
13
|
+
|
14
|
+
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
15
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
16
|
+
else()
|
17
|
+
|
18
|
+
if("19.0.0" MATCHES "^([0-9]+)\\.")
|
19
|
+
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
20
|
+
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
|
21
|
+
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
|
22
|
+
endif()
|
23
|
+
else()
|
24
|
+
set(CVF_VERSION_MAJOR "19.0.0")
|
25
|
+
endif()
|
26
|
+
|
27
|
+
if(PACKAGE_FIND_VERSION_RANGE)
|
28
|
+
# both endpoints of the range must have the expected major version
|
29
|
+
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
|
30
|
+
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
31
|
+
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
32
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
|
33
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
34
|
+
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
35
|
+
AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
|
36
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
|
37
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
38
|
+
else()
|
39
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
40
|
+
endif()
|
41
|
+
else()
|
42
|
+
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
43
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
44
|
+
else()
|
45
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
46
|
+
endif()
|
47
|
+
|
48
|
+
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
49
|
+
set(PACKAGE_VERSION_EXACT TRUE)
|
50
|
+
endif()
|
51
|
+
endif()
|
52
|
+
endif()
|
53
|
+
|
54
|
+
|
@@ -0,0 +1,99 @@
|
|
1
|
+
cmake_minimum_required(VERSION 3.28)
|
2
|
+
|
3
|
+
##
|
4
|
+
# Utilities for manipulating Halide target triples
|
5
|
+
##
|
6
|
+
|
7
|
+
macro(_Halide_target_arch_os arch os)
|
8
|
+
string(TOLOWER "${arch}" arch)
|
9
|
+
list(TRANSFORM arch REPLACE "^.*(x86|arm|powerpc|hexagon|wasm|riscv).*$" "\\1")
|
10
|
+
list(TRANSFORM arch REPLACE "^i.?86.*$" "x86")
|
11
|
+
list(TRANSFORM arch REPLACE "^(amd|ia|em)64t?$" "x86")
|
12
|
+
list(TRANSFORM arch REPLACE "^ppc(64(le)?)?$" "powerpc")
|
13
|
+
list(TRANSFORM arch REPLACE "^aarch(64)?$" "arm")
|
14
|
+
|
15
|
+
string(TOLOWER "${os}" os)
|
16
|
+
list(TRANSFORM os REPLACE "^darwin$" "osx")
|
17
|
+
list(TRANSFORM os REPLACE "^emscripten$" "wasmrt")
|
18
|
+
|
19
|
+
# Fix up emscripten usage
|
20
|
+
if (os STREQUAL "wasmrt" AND arch STREQUAL "x86")
|
21
|
+
set(arch "wasm")
|
22
|
+
endif ()
|
23
|
+
endmacro()
|
24
|
+
|
25
|
+
function(_Halide_host_target OUTVAR)
|
26
|
+
_Halide_target_arch_os("${CMAKE_HOST_SYSTEM_PROCESSOR}" "${CMAKE_HOST_SYSTEM_NAME}")
|
27
|
+
|
28
|
+
cmake_host_system_information(RESULT is_64bit QUERY IS_64BIT)
|
29
|
+
if (is_64bit)
|
30
|
+
set(bits 64)
|
31
|
+
else ()
|
32
|
+
set(bits 32)
|
33
|
+
endif ()
|
34
|
+
|
35
|
+
set(${OUTVAR} "${arch}-${bits}-${os}" PARENT_SCOPE)
|
36
|
+
endfunction()
|
37
|
+
|
38
|
+
function(_Halide_cmake_target OUTVAR)
|
39
|
+
math(EXPR bits "8 * ${CMAKE_SIZEOF_VOID_P}")
|
40
|
+
if (CMAKE_OSX_ARCHITECTURES)
|
41
|
+
set(${OUTVAR} "")
|
42
|
+
foreach (processor IN LISTS CMAKE_OSX_ARCHITECTURES)
|
43
|
+
_Halide_target_arch_os("${processor}" "${CMAKE_SYSTEM_NAME}")
|
44
|
+
list(APPEND ${OUTVAR} "${arch}-${bits}-${os}")
|
45
|
+
endforeach ()
|
46
|
+
list(REMOVE_DUPLICATES ${OUTVAR}) # defensive
|
47
|
+
else ()
|
48
|
+
_Halide_target_arch_os("${CMAKE_SYSTEM_PROCESSOR}" "${CMAKE_SYSTEM_NAME}")
|
49
|
+
set(${OUTVAR} "${arch}-${bits}-${os}")
|
50
|
+
endif ()
|
51
|
+
set(${OUTVAR} "${${OUTVAR}}" PARENT_SCOPE)
|
52
|
+
endfunction()
|
53
|
+
|
54
|
+
##
|
55
|
+
# Set Halide `host` and `cmake` meta-target values
|
56
|
+
##
|
57
|
+
|
58
|
+
if (NOT DEFINED Halide_HOST_TARGET)
|
59
|
+
_Halide_host_target(Halide_HOST_TARGET)
|
60
|
+
endif ()
|
61
|
+
|
62
|
+
set(Halide_HOST_TARGET "${Halide_HOST_TARGET}"
|
63
|
+
CACHE STRING "Halide target triple matching the Halide library")
|
64
|
+
|
65
|
+
if (NOT DEFINED Halide_CMAKE_TARGET)
|
66
|
+
_Halide_cmake_target(Halide_CMAKE_TARGET)
|
67
|
+
endif ()
|
68
|
+
|
69
|
+
set(Halide_CMAKE_TARGET "${Halide_CMAKE_TARGET}"
|
70
|
+
CACHE STRING "Halide target triple matching the CMake target")
|
71
|
+
|
72
|
+
##
|
73
|
+
# Cache variable to control the global target for add_halide_library.
|
74
|
+
##
|
75
|
+
|
76
|
+
if (NOT DEFINED Halide_TARGET)
|
77
|
+
if (NOT "$ENV{HL_TARGET}" STREQUAL "")
|
78
|
+
set(Halide_TARGET "$ENV{HL_TARGET}")
|
79
|
+
elseif (Halide_HOST_TARGET STREQUAL Halide_CMAKE_TARGET)
|
80
|
+
set(Halide_TARGET "host")
|
81
|
+
else ()
|
82
|
+
set(Halide_TARGET "cmake")
|
83
|
+
endif ()
|
84
|
+
endif ()
|
85
|
+
|
86
|
+
set(Halide_TARGET "${Halide_TARGET}"
|
87
|
+
CACHE STRING "The default target to use when AOT compiling")
|
88
|
+
|
89
|
+
##
|
90
|
+
# Print the active values of all special target triples.
|
91
|
+
##
|
92
|
+
|
93
|
+
get_property(${CMAKE_FIND_PACKAGE_NAME}_MESSAGE_PRINTED GLOBAL PROPERTY ${CMAKE_FIND_PACKAGE_NAME}_MESSAGE_PRINTED)
|
94
|
+
if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY AND NOT ${CMAKE_FIND_PACKAGE_NAME}_MESSAGE_PRINTED)
|
95
|
+
message(STATUS "Halide 'host' platform triple: ${Halide_HOST_TARGET}")
|
96
|
+
message(STATUS "Halide 'cmake' platform triple: ${Halide_CMAKE_TARGET}")
|
97
|
+
message(STATUS "Halide default AOT target: ${Halide_TARGET}")
|
98
|
+
set_property(GLOBAL PROPERTY ${CMAKE_FIND_PACKAGE_NAME}_MESSAGE_PRINTED 1)
|
99
|
+
endif ()
|
@@ -0,0 +1,31 @@
|
|
1
|
+
param([string]$src, [string]$dstDir)
|
2
|
+
|
3
|
+
try {
|
4
|
+
$bytes = [System.Text.Encoding]::UTF8.GetBytes($dstDir)
|
5
|
+
$hash = [System.Security.Cryptography.SHA512]::Create().ComputeHash($bytes)
|
6
|
+
$key = "Halide-" + ([Convert]::ToBase64String($hash) -replace ('/', '-'))
|
7
|
+
|
8
|
+
$m = New-Object System.Threading.Mutex($false, $key)
|
9
|
+
if (!$m) {
|
10
|
+
throw "Failed to create mutex $key"
|
11
|
+
}
|
12
|
+
|
13
|
+
$m.WaitOne() | Out-Null
|
14
|
+
|
15
|
+
$name = Split-Path $src -leaf
|
16
|
+
$dst = Join-Path $dstDir $name
|
17
|
+
if (Test-Path $dst) {
|
18
|
+
$srcTime = (Get-Item $src).LastWriteTime
|
19
|
+
$dstTime = (Get-Item $dst).LastWriteTime
|
20
|
+
if ($dstTime -ge $srcTime) {
|
21
|
+
Return
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
Copy-Item $src $dstDir
|
26
|
+
} finally {
|
27
|
+
if ($m) {
|
28
|
+
$m.ReleaseMutex() | Out-Null
|
29
|
+
$m.Dispose() | Out-Null
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
cmake_minimum_required(VERSION 3.28)
|
2
|
+
|
3
|
+
include(CheckLinkerFlag)
|
4
|
+
|
5
|
+
function(target_export_script TARGET)
|
6
|
+
set(options)
|
7
|
+
set(oneValueArgs LINK_EXE APPLE_LD GNU_LD)
|
8
|
+
set(multiValueArgs)
|
9
|
+
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
10
|
+
|
11
|
+
get_property(target_type TARGET ${TARGET} PROPERTY TYPE)
|
12
|
+
if (NOT target_type MATCHES "(SHARED|MODULE)_LIBRARY")
|
13
|
+
# Linker scripts do nothing on non-shared libraries.
|
14
|
+
return()
|
15
|
+
endif ()
|
16
|
+
|
17
|
+
if (MSVC)
|
18
|
+
## TODO: implement something similar for Windows/link.exe
|
19
|
+
# https://github.com/halide/Halide/issues/4651
|
20
|
+
return()
|
21
|
+
endif ()
|
22
|
+
|
23
|
+
if (XCODE)
|
24
|
+
# There is a bug in Xcode where -Xlinker flags in the OTHER_LDFLAGS
|
25
|
+
# property creates a bogus dependency on a file named -Xlinker. No
|
26
|
+
# idea how this happens. CMake translates the EXPORTED_SYMBOLS_FLAG
|
27
|
+
# below to -Xlinker -exported_symbols_list -Xlinker ${ARG_APPLE_LD}
|
28
|
+
# which by rights should work, and in fact Xcode prints a link line
|
29
|
+
# that DOES work, but the aforementioned bug breaks the check. Going
|
30
|
+
# through the "official" Xcode attribute is a reasonable workaround.
|
31
|
+
set_property(TARGET "${TARGET}" PROPERTY XCODE_ATTRIBUTE_EXPORTED_SYMBOLS_FILE "${ARG_APPLE_LD}")
|
32
|
+
return()
|
33
|
+
endif ()
|
34
|
+
|
35
|
+
## More linkers support the GNU syntax (ld, lld, gold), so try it first.
|
36
|
+
set(VERSION_SCRIPT_FLAG "LINKER:--version-script=${ARG_GNU_LD}")
|
37
|
+
check_linker_flag(CXX "${VERSION_SCRIPT_FLAG}" LINKER_HAS_FLAG_VERSION_SCRIPT)
|
38
|
+
if (LINKER_HAS_FLAG_VERSION_SCRIPT)
|
39
|
+
target_link_options(${TARGET} PRIVATE "${VERSION_SCRIPT_FLAG}")
|
40
|
+
set_property(TARGET ${TARGET} APPEND PROPERTY LINK_DEPENDS "${ARG_GNU_LD}")
|
41
|
+
return()
|
42
|
+
endif ()
|
43
|
+
|
44
|
+
## The Apple linker expects a different flag.
|
45
|
+
file(CONFIGURE OUTPUT _target_export_script.apple.ldscript CONTENT [[]])
|
46
|
+
set(EXPORTED_SYMBOLS_FLAG "LINKER:-exported_symbols_list,${CMAKE_CURRENT_BINARY_DIR}/_target_export_script.apple.ldscript")
|
47
|
+
check_linker_flag(CXX "${EXPORTED_SYMBOLS_FLAG}" LINKER_HAS_FLAG_EXPORTED_SYMBOLS_LIST)
|
48
|
+
if (LINKER_HAS_FLAG_EXPORTED_SYMBOLS_LIST)
|
49
|
+
target_link_options(${TARGET} PRIVATE "LINKER:-exported_symbols_list,${ARG_APPLE_LD}")
|
50
|
+
set_property(TARGET ${TARGET} APPEND PROPERTY LINK_DEPENDS "${ARG_APPLE_LD}")
|
51
|
+
return()
|
52
|
+
endif ()
|
53
|
+
|
54
|
+
message(WARNING "Unknown linker! Could not attach Halide linker script.")
|
55
|
+
endfunction()
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#----------------------------------------------------------------
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
3
|
+
#----------------------------------------------------------------
|
4
|
+
|
5
|
+
# Commands may need to know the format version.
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
7
|
+
|
8
|
+
# Import target "Halide::Python" for configuration "Release"
|
9
|
+
set_property(TARGET Halide::Python APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
+
set_target_properties(Halide::Python PROPERTIES
|
11
|
+
IMPORTED_COMMON_LANGUAGE_RUNTIME_RELEASE ""
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/./halide_.cp310-win_amd64.pyd"
|
13
|
+
)
|
14
|
+
|
15
|
+
list(APPEND _cmake_import_check_targets Halide::Python )
|
16
|
+
list(APPEND _cmake_import_check_files_for_Halide::Python "${_IMPORT_PREFIX}/./halide_.cp310-win_amd64.pyd" )
|
17
|
+
|
18
|
+
# Import target "Halide::PyStubs" for configuration "Release"
|
19
|
+
set_property(TARGET Halide::PyStubs APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
20
|
+
set_target_properties(Halide::PyStubs PROPERTIES
|
21
|
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
|
22
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/HalidePyStubs.lib"
|
23
|
+
)
|
24
|
+
|
25
|
+
list(APPEND _cmake_import_check_targets Halide::PyStubs )
|
26
|
+
list(APPEND _cmake_import_check_files_for_Halide::PyStubs "${_IMPORT_PREFIX}/lib/HalidePyStubs.lib" )
|
27
|
+
|
28
|
+
# Commands beyond this point should not need to know the version.
|
29
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
@@ -0,0 +1,125 @@
|
|
1
|
+
# Generated by CMake
|
2
|
+
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
4
|
+
message(FATAL_ERROR "CMake >= 2.8.0 required")
|
5
|
+
endif()
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "2.8.3")
|
7
|
+
message(FATAL_ERROR "CMake >= 2.8.3 required")
|
8
|
+
endif()
|
9
|
+
cmake_policy(PUSH)
|
10
|
+
cmake_policy(VERSION 2.8.3...3.26)
|
11
|
+
#----------------------------------------------------------------
|
12
|
+
# Generated CMake target import file.
|
13
|
+
#----------------------------------------------------------------
|
14
|
+
|
15
|
+
# Commands may need to know the format version.
|
16
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
17
|
+
|
18
|
+
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
19
|
+
set(_cmake_targets_defined "")
|
20
|
+
set(_cmake_targets_not_defined "")
|
21
|
+
set(_cmake_expected_targets "")
|
22
|
+
foreach(_cmake_expected_target IN ITEMS Halide::Python Halide::PyStubs)
|
23
|
+
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
24
|
+
if(TARGET "${_cmake_expected_target}")
|
25
|
+
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
26
|
+
else()
|
27
|
+
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
28
|
+
endif()
|
29
|
+
endforeach()
|
30
|
+
unset(_cmake_expected_target)
|
31
|
+
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
32
|
+
unset(_cmake_targets_defined)
|
33
|
+
unset(_cmake_targets_not_defined)
|
34
|
+
unset(_cmake_expected_targets)
|
35
|
+
unset(CMAKE_IMPORT_FILE_VERSION)
|
36
|
+
cmake_policy(POP)
|
37
|
+
return()
|
38
|
+
endif()
|
39
|
+
if(NOT _cmake_targets_defined STREQUAL "")
|
40
|
+
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
41
|
+
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
42
|
+
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
43
|
+
endif()
|
44
|
+
unset(_cmake_targets_defined)
|
45
|
+
unset(_cmake_targets_not_defined)
|
46
|
+
unset(_cmake_expected_targets)
|
47
|
+
|
48
|
+
|
49
|
+
# Compute the installation prefix relative to this file.
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
55
|
+
set(_IMPORT_PREFIX "")
|
56
|
+
endif()
|
57
|
+
|
58
|
+
# Create imported target Halide::Python
|
59
|
+
add_library(Halide::Python MODULE IMPORTED)
|
60
|
+
|
61
|
+
# Create imported target Halide::PyStubs
|
62
|
+
add_library(Halide::PyStubs STATIC IMPORTED)
|
63
|
+
|
64
|
+
set_target_properties(Halide::PyStubs PROPERTIES
|
65
|
+
INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:Halide::Halide>;\$<LINK_ONLY:>"
|
66
|
+
)
|
67
|
+
|
68
|
+
if(CMAKE_VERSION VERSION_LESS 2.8.12)
|
69
|
+
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
|
70
|
+
endif()
|
71
|
+
|
72
|
+
# Load information for each installed configuration.
|
73
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/Halide_Python-targets-*.cmake")
|
74
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
75
|
+
include("${_cmake_config_file}")
|
76
|
+
endforeach()
|
77
|
+
unset(_cmake_config_file)
|
78
|
+
unset(_cmake_config_files)
|
79
|
+
|
80
|
+
# Cleanup temporary variables.
|
81
|
+
set(_IMPORT_PREFIX)
|
82
|
+
|
83
|
+
# Loop over all imported files and verify that they actually exist
|
84
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
85
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
86
|
+
if(NOT EXISTS "${_cmake_file}")
|
87
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
88
|
+
\"${_cmake_file}\"
|
89
|
+
but this file does not exist. Possible reasons include:
|
90
|
+
* The file was deleted, renamed, or moved to another location.
|
91
|
+
* An install or uninstall procedure did not complete successfully.
|
92
|
+
* The installation package was faulty and contained
|
93
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
94
|
+
but not all the files it references.
|
95
|
+
")
|
96
|
+
endif()
|
97
|
+
endforeach()
|
98
|
+
unset(_cmake_file)
|
99
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
100
|
+
endforeach()
|
101
|
+
unset(_cmake_target)
|
102
|
+
unset(_cmake_import_check_targets)
|
103
|
+
|
104
|
+
# Make sure the targets which have been exported in some other
|
105
|
+
# export set exist.
|
106
|
+
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
|
107
|
+
foreach(_target "Halide::Halide" )
|
108
|
+
if(NOT TARGET "${_target}" )
|
109
|
+
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}")
|
110
|
+
endif()
|
111
|
+
endforeach()
|
112
|
+
|
113
|
+
if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
|
114
|
+
if(CMAKE_FIND_PACKAGE_NAME)
|
115
|
+
set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
116
|
+
set( ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
|
117
|
+
else()
|
118
|
+
message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
|
119
|
+
endif()
|
120
|
+
endif()
|
121
|
+
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
|
122
|
+
|
123
|
+
# Commands beyond this point should not need to know the version.
|
124
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
125
|
+
cmake_policy(POP)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
cmake_minimum_required(VERSION 3.28)
|
2
|
+
|
3
|
+
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
4
|
+
####### Any changes to this file will be overwritten by the next CMake run ####
|
5
|
+
####### The input file was Halide_PythonConfig.cmake.in ########
|
6
|
+
|
7
|
+
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
|
8
|
+
|
9
|
+
macro(check_required_components _NAME)
|
10
|
+
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
11
|
+
if(NOT ${_NAME}_${comp}_FOUND)
|
12
|
+
if(${_NAME}_FIND_REQUIRED_${comp})
|
13
|
+
set(${_NAME}_FOUND FALSE)
|
14
|
+
endif()
|
15
|
+
endif()
|
16
|
+
endforeach()
|
17
|
+
endmacro()
|
18
|
+
|
19
|
+
####################################################################################
|
20
|
+
|
21
|
+
include(CMakeFindDependencyMacro)
|
22
|
+
find_dependency(Python 3 COMPONENTS Interpreter Development.Module)
|
23
|
+
|
24
|
+
include("${CMAKE_CURRENT_LIST_DIR}/Halide_Python-targets.cmake")
|
25
|
+
|
26
|
+
check_required_components(${CMAKE_FIND_PACKAGE_NAME})
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# This is a basic version file for the Config-mode of find_package().
|
2
|
+
# It is used by write_basic_package_version_file() as input file for configure_file()
|
3
|
+
# to create a version-file which can be installed along a config.cmake file.
|
4
|
+
#
|
5
|
+
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
6
|
+
# the requested version string are exactly the same and it sets
|
7
|
+
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
|
8
|
+
# but only if the requested major version is the same as the current one.
|
9
|
+
# The variable CVF_VERSION must be set before calling configure_file().
|
10
|
+
|
11
|
+
|
12
|
+
set(PACKAGE_VERSION "19.0.0")
|
13
|
+
|
14
|
+
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
15
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
16
|
+
else()
|
17
|
+
|
18
|
+
if("19.0.0" MATCHES "^([0-9]+)\\.")
|
19
|
+
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
20
|
+
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
|
21
|
+
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
|
22
|
+
endif()
|
23
|
+
else()
|
24
|
+
set(CVF_VERSION_MAJOR "19.0.0")
|
25
|
+
endif()
|
26
|
+
|
27
|
+
if(PACKAGE_FIND_VERSION_RANGE)
|
28
|
+
# both endpoints of the range must have the expected major version
|
29
|
+
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
|
30
|
+
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
31
|
+
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
32
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
|
33
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
34
|
+
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
35
|
+
AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
|
36
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
|
37
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
38
|
+
else()
|
39
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
40
|
+
endif()
|
41
|
+
else()
|
42
|
+
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
43
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
44
|
+
else()
|
45
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
46
|
+
endif()
|
47
|
+
|
48
|
+
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
49
|
+
set(PACKAGE_VERSION_EXACT TRUE)
|
50
|
+
endif()
|
51
|
+
endif()
|
52
|
+
endif()
|
53
|
+
|
54
|
+
|
55
|
+
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
56
|
+
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
|
57
|
+
return()
|
58
|
+
endif()
|
59
|
+
|
60
|
+
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
61
|
+
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
|
62
|
+
math(EXPR installedBits "8 * 8")
|
63
|
+
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
64
|
+
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
65
|
+
endif()
|