mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
math/clfft: Unbreak by fixing C++ error
Approved by: portmgr (unbreak)
(cherry picked from commit 561d1faa61
)
This commit is contained in:
parent
f98586797e
commit
5dde230a5a
1 changed files with 16 additions and 0 deletions
16
math/clfft/files/patch-src_library_generator.transpose.cpp
Normal file
16
math/clfft/files/patch-src_library_generator.transpose.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
- fix C++ error
|
||||
|
||||
--- src/library/generator.transpose.cpp.orig 2016-08-31 21:46:51 UTC
|
||||
+++ src/library/generator.transpose.cpp
|
||||
@@ -1089,8 +1089,9 @@ clfftStatus genSwapKernelGeneral(const FFTGeneratedTra
|
||||
|
||||
//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::ostringstream ss1, ss2;
|
||||
+ std::string smaller_dim_str = (ss1 << smaller_dim, ss1.str());
|
||||
+ std::string dim_ratio_str = (ss2 << dim_ratio, ss2.str());
|
||||
if(params.fft_N[0] > params.fft_N[1])
|
||||
funcName = funcName + smaller_dim_str + "_" + dim_ratio_str;
|
||||
else
|
Loading…
Add table
Reference in a new issue