[clfft] fix arm build (#27093)

This commit is contained in:
autoantwort 2022-10-06 00:05:06 +02:00 committed by GitHub
parent 3c861b4e9b
commit 72c3a75601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 2 deletions

View 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

View File

@ -6,6 +6,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
tweak-install.patch
fix-build.patch
)
vcpkg_cmake_configure(

View File

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

View File

@ -1450,7 +1450,7 @@
},
"clfft": {
"baseline": "2.12.2",
"port-version": 5
"port-version": 6
},
"cli": {
"baseline": "2.0.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4acb8a5a455beee82cacccf5b72e6c6aa8d8c6a7",
"version": "2.12.2",
"port-version": 6
},
{
"git-tree": "b935ce5f9e186f9be8fe85d6d228043bede4cd04",
"version": "2.12.2",