aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/clfft/fix-build.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/clfft/fix-build.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/clfft/fix-build.patch')
-rw-r--r--vcpkg/ports/clfft/fix-build.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/clfft/fix-build.patch b/vcpkg/ports/clfft/fix-build.patch
new file mode 100644
index 0000000..65c3439
--- /dev/null
+++ b/vcpkg/ports/clfft/fix-build.patch
@@ -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