[arrayfire] Fix feature opencl dependency clFFT (#26773)

* [arrayfire] Fix feature opencl dependency clFFT

* version

* Add homepage and license

* version
This commit is contained in:
Jack·Boos·Yu 2022-09-13 23:33:28 +00:00 committed by GitHub
parent 999825f5cb
commit 0399e7964a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 5 deletions

View 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)

View File

@ -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()

View File

@ -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"
]
},

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "137eb0d15f469e75ad3255cf1de871d83b3dff49",
"version-semver": "3.8.0",
"port-version": 1
},
{
"git-tree": "e6c5e8b4e1c52380ebd2050683a185c44a2dbae4",
"version-semver": "3.8.0",

View File

@ -182,7 +182,7 @@
},
"arrayfire": {
"baseline": "3.8.0",
"port-version": 0
"port-version": 1
},
"arrow": {
"baseline": "9.0.0",