mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 16:52:53 +08:00
[arrayfire] Fix feature opencl dependency clFFT (#26773)
* [arrayfire] Fix feature opencl dependency clFFT * version * Add homepage and license * version
This commit is contained in:
parent
999825f5cb
commit
0399e7964a
14
ports/arrayfire/fix-dependency-clfft.patch
Normal file
14
ports/arrayfire/fix-dependency-clfft.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/src/backend/opencl/CMakeLists.txt b/src/backend/opencl/CMakeLists.txt
|
||||
index f970da0..b543433 100644
|
||||
--- a/src/backend/opencl/CMakeLists.txt
|
||||
+++ b/src/backend/opencl/CMakeLists.txt
|
||||
@@ -12,7 +12,8 @@ set_property(CACHE AF_OPENCL_BLAS_LIBRARY PROPERTY STRINGS "clBLAS" "CLBlast")
|
||||
|
||||
af_deprecate(OPENCL_BLAS_LIBRARY AF_OPENCL_BLAS_LIBRARY)
|
||||
|
||||
-include(build_clFFT)
|
||||
+find_package(clFFT CONFIG REQUIRED)
|
||||
+add_library(clFFT::clFFT ALIAS clFFT)
|
||||
|
||||
file(GLOB kernel_src kernel/*.cl kernel/KParam.hpp)
|
||||
|
@ -7,6 +7,7 @@ vcpkg_from_github(
|
||||
PATCHES
|
||||
build.patch
|
||||
Fix-constexpr-error-with-vs2019-with-half.patch
|
||||
fix-dependency-clfft.patch
|
||||
)
|
||||
|
||||
# arrayfire cpu thread lib needed as a submodule for the CPU backend
|
||||
@ -73,6 +74,8 @@ vcpkg_cmake_configure(
|
||||
OPTIONS
|
||||
${AF_DEFAULT_VCPKG_CMAKE_FLAGS}
|
||||
${AF_BACKEND_FEATURE_OPTIONS}
|
||||
MAYBE_UNUSED_VARIABLES
|
||||
AF_CPU_THREAD_PATH
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
|
||||
|
@ -1,7 +1,10 @@
|
||||
{
|
||||
"name": "arrayfire",
|
||||
"version-semver": "3.8.0",
|
||||
"port-version": 1,
|
||||
"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",
|
||||
"license": "BSD-3-Clause",
|
||||
"supports": "x64",
|
||||
"dependencies": [
|
||||
"boost-compute",
|
||||
@ -39,6 +42,7 @@
|
||||
"opencl": {
|
||||
"description": "ArrayFire OpenCL backend",
|
||||
"dependencies": [
|
||||
"clfft",
|
||||
"opencl"
|
||||
]
|
||||
},
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "137eb0d15f469e75ad3255cf1de871d83b3dff49",
|
||||
"version-semver": "3.8.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "e6c5e8b4e1c52380ebd2050683a185c44a2dbae4",
|
||||
"version-semver": "3.8.0",
|
||||
|
@ -182,7 +182,7 @@
|
||||
},
|
||||
"arrayfire": {
|
||||
"baseline": "3.8.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"arrow": {
|
||||
"baseline": "9.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user