mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 17:41:09 +08:00
[clfft] fix arm build (#27093)
This commit is contained in:
parent
3c861b4e9b
commit
72c3a75601
25
ports/clfft/fix-build.patch
Normal file
25
ports/clfft/fix-build.patch
Normal file
@ -0,0 +1,25 @@
|
||||
diff --git a/src/library/generator.transpose.cpp b/src/library/generator.transpose.cpp
|
||||
index a04a43a..5c15882 100644
|
||||
--- a/src/library/generator.transpose.cpp
|
||||
+++ b/src/library/generator.transpose.cpp
|
||||
@@ -1089,8 +1089,18 @@ clfftStatus genSwapKernelGeneral(const FFTGeneratedTransposeNonSquareAction::Sig
|
||||
|
||||
//std::string funcName = "swap_nonsquare_" + std::to_string(smaller_dim) + "_" + std::to_string(dim_ratio);
|
||||
std::string funcName = "swap_nonsquare_";
|
||||
- std::string smaller_dim_str = static_cast<std::ostringstream*>(&(std::ostringstream() << smaller_dim))->str();
|
||||
- std::string dim_ratio_str = static_cast<std::ostringstream*>(&(std::ostringstream() << dim_ratio))->str();
|
||||
+ std::string smaller_dim_str;
|
||||
+ {
|
||||
+ std::ostringstream oss;
|
||||
+ oss << smaller_dim;
|
||||
+ smaller_dim_str = oss.str();
|
||||
+ }
|
||||
+ std::string dim_ratio_str;
|
||||
+ {
|
||||
+ std::ostringstream oss;
|
||||
+ oss << dim_ratio;
|
||||
+ dim_ratio_str = oss.str();
|
||||
+ }
|
||||
if(params.fft_N[0] > params.fft_N[1])
|
||||
funcName = funcName + smaller_dim_str + "_" + dim_ratio_str;
|
||||
else
|
@ -6,6 +6,7 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
tweak-install.patch
|
||||
fix-build.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "clfft",
|
||||
"version": "2.12.2",
|
||||
"port-version": 5,
|
||||
"port-version": 6,
|
||||
"description": "clFFT is an OpenCL 1.2 accelerated Fast Fourier Transform library.",
|
||||
"homepage": "https://github.com/clMathLibraries/clFFT",
|
||||
"license": "Apache-2.0",
|
||||
|
@ -1450,7 +1450,7 @@
|
||||
},
|
||||
"clfft": {
|
||||
"baseline": "2.12.2",
|
||||
"port-version": 5
|
||||
"port-version": 6
|
||||
},
|
||||
"cli": {
|
||||
"baseline": "2.0.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "4acb8a5a455beee82cacccf5b72e6c6aa8d8c6a7",
|
||||
"version": "2.12.2",
|
||||
"port-version": 6
|
||||
},
|
||||
{
|
||||
"git-tree": "b935ce5f9e186f9be8fe85d6d228043bede4cd04",
|
||||
"version": "2.12.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user