mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:19:00 +08:00
[arrayfire] Add missing header files (#41236)
This commit is contained in:
parent
2b4200d3f2
commit
dd6fbdd22c
12
ports/arrayfire/fix-miss-header-file.patch
Normal file
12
ports/arrayfire/fix-miss-header-file.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/src/backend/common/half.hpp b/src/backend/common/half.hpp
|
||||||
|
index fb25d03..2f6a8a4 100644
|
||||||
|
--- a/src/backend/common/half.hpp
|
||||||
|
+++ b/src/backend/common/half.hpp
|
||||||
|
@@ -33,6 +33,7 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <backend.hpp>
|
||||||
|
+#include <cstdint>
|
||||||
|
|
||||||
|
#ifdef __CUDACC_RTC__
|
||||||
|
using uint16_t = unsigned short;
|
@ -1,3 +1,10 @@
|
|||||||
|
vcpkg_download_distfile(
|
||||||
|
CUDA_PATCHES
|
||||||
|
URLS "https://github.com/arrayfire/arrayfire/pull/3552/commits/674e7bec90b90467139d32bf633467fe60824617.diff?full_index=1"
|
||||||
|
FILENAME "fix-cuda-674e7bec90b90467139d32bf633467fe60824617.patch"
|
||||||
|
SHA512 201ba8c46f5eafd5d8dbc78ddc1fb4c24b8d820f034e081b8ff30712705fe059c2850bbb7394d81931620619071559fed0e98b13cc4f985103e354c44a322e78
|
||||||
|
)
|
||||||
|
|
||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO arrayfire/arrayfire
|
REPO arrayfire/arrayfire
|
||||||
@ -8,6 +15,8 @@ vcpkg_from_github(
|
|||||||
build.patch
|
build.patch
|
||||||
Fix-constexpr-error-with-vs2019-with-half.patch
|
Fix-constexpr-error-with-vs2019-with-half.patch
|
||||||
fix-dependency-clfft.patch
|
fix-dependency-clfft.patch
|
||||||
|
fix-miss-header-file.patch
|
||||||
|
"${CUDA_PATCHES}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# arrayfire cpu thread lib needed as a submodule for the CPU backend
|
# arrayfire cpu thread lib needed as a submodule for the CPU backend
|
||||||
@ -91,7 +100,7 @@ vcpkg_cmake_install()
|
|||||||
|
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_OSX)
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
||||||
vcpkg_cmake_config_fixup(CONFIG_PATH share/ArrayFire/cmake)
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/ArrayFire/cmake)
|
||||||
else()
|
else()
|
||||||
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
||||||
@ -103,6 +112,9 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
|||||||
"${CURRENT_PACKAGES_DIR}/examples"
|
"${CURRENT_PACKAGES_DIR}/examples"
|
||||||
"${CURRENT_PACKAGES_DIR}/LICENSES"
|
"${CURRENT_PACKAGES_DIR}/LICENSES"
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/LICENSES")
|
"${CURRENT_PACKAGES_DIR}/debug/LICENSES")
|
||||||
|
if(FEATURES STREQUAL "core")
|
||||||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Copyright and license
|
# Copyright and license
|
||||||
file(INSTALL "${SOURCE_PATH}/COPYRIGHT.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "arrayfire",
|
"name": "arrayfire",
|
||||||
"version-semver": "3.8.0",
|
"version-semver": "3.8.0",
|
||||||
"port-version": 6,
|
"port-version": 7,
|
||||||
"description": "ArrayFire is a general-purpose library that simplifies the process of developing software that targets parallel and massively-parallel architectures including CPUs, GPUs, and other hardware acceleration devices.",
|
"description": "ArrayFire is a general-purpose library that simplifies the process of developing software that targets parallel and massively-parallel architectures including CPUs, GPUs, and other hardware acceleration devices.",
|
||||||
"homepage": "https://github.com/arrayfire/arrayfire",
|
"homepage": "https://github.com/arrayfire/arrayfire",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "985696275cbb76cb02d89d11f8e2490921c09874",
|
||||||
|
"version-semver": "3.8.0",
|
||||||
|
"port-version": 7
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "45bae5e28a1c092e6024e21dcc4bab12c4e03440",
|
"git-tree": "45bae5e28a1c092e6024e21dcc4bab12c4e03440",
|
||||||
"version-semver": "3.8.0",
|
"version-semver": "3.8.0",
|
||||||
|
@ -242,7 +242,7 @@
|
|||||||
},
|
},
|
||||||
"arrayfire": {
|
"arrayfire": {
|
||||||
"baseline": "3.8.0",
|
"baseline": "3.8.0",
|
||||||
"port-version": 6
|
"port-version": 7
|
||||||
},
|
},
|
||||||
"arrow": {
|
"arrow": {
|
||||||
"baseline": "17.0.0",
|
"baseline": "17.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user