[arrayfire] Fix fmt library compile error in OpenCL backend (#49889)

This commit is contained in:
Zheng Xueke 2026-02-12 02:38:23 +08:00 committed by GitHub
parent e2d3d2367b
commit 5bcd5f6c73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 17 additions and 3 deletions

View File

@ -0,0 +1,9 @@
diff --git a/src/backend/opencl/compile_module.cpp b/src/backend/opencl/compile_module.cpp
index 35f992f..8cfc83e 100644
--- a/src/backend/opencl/compile_module.cpp
+++ b/src/backend/opencl/compile_module.cpp
@@ -21,2 +21,4 @@
#include <traits.hpp>
+#include <fmt/format.h>
+#include <fmt/ranges.h>

View File

@ -23,6 +23,7 @@ vcpkg_from_github(
Fix-constexpr-error-with-vs2019-with-half.patch
fix-dependency-clfft.patch
fix-miss-header-file.patch
fix-fmt-error.patch
remove-cl2hpp-download.diff
"${CUDA_PATCHES}"
)

View File

@ -1,7 +1,7 @@
{
"name": "arrayfire",
"version-semver": "3.8.0",
"port-version": 9,
"port-version": 10,
"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",

View File

@ -641,7 +641,6 @@ adios2[cuda]:x64-windows-static = feature-fails # try_run() invoked in cross-com
adios2[mpi]:x86-windows = feature-fails
adios2[python] = feature-fails # Could NOT find Python (missing: Python_NumPy_INCLUDE_DIRS NumPy)
adios2[zfp](android | (arm & windows)) = feature-fails # try_run() invoked in cross-compiling mode
arrayfire[opencl](windows) = feature-fails # build errror: See https://github.com/microsoft/vcpkg/issues/33464
ashes[core](windows) = combination-fails # CMake Error: INSTALL(EXPORT) given unknown export "AshesRenderers". One render backend must be selected
awlib[graphics](osx) = feature-fails # Broken code. See https://github.com/microsoft/vcpkg/issues/39849
cgns[core,fortran,hdf5,legacy,lfs,mpi,tests](osx | linux) = combination-fails # ["fortran","hdf5","mpi"]: Could NOT find MPI (missing: MPI_Fortran_FOUND) (found version "3.1")

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c977914f0cfe2c181c1feea7a21e67ca3cefa45c",
"version-semver": "3.8.0",
"port-version": 10
},
{
"git-tree": "c0aef37891aafcb73d45f1e18bba8c581085b099",
"version-semver": "3.8.0",

View File

@ -282,7 +282,7 @@
},
"arrayfire": {
"baseline": "3.8.0",
"port-version": 9
"port-version": 10
},
"arrow": {
"baseline": "23.0.0",