From f3dffff940df0ec1671604fc781b8a75c072e317 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 15 Oct 2017 18:51:26 +0300 Subject: Add debian/patches/dyson-math.patch --- debian/patches/dyson-math.patch | 19 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 20 insertions(+) create mode 100644 debian/patches/dyson-math.patch diff --git a/debian/patches/dyson-math.patch b/debian/patches/dyson-math.patch new file mode 100644 index 0000000..8f34a87 --- /dev/null +++ b/debian/patches/dyson-math.patch @@ -0,0 +1,19 @@ +Description: call of overloaded ‘ceil(long unsigned int)’ is ambiguous, + call of overloaded ‘sqrt(long unsigned int)’ is ambiguous +Index: llvm-toolchain-5.0-5.0/tools/polly/lib/Transform/ScheduleOptimizer.cpp +=================================================================== +--- llvm-toolchain-5.0-5.0.orig/tools/polly/lib/Transform/ScheduleOptimizer.cpp ++++ llvm-toolchain-5.0-5.0/tools/polly/lib/Transform/ScheduleOptimizer.cpp +@@ -971,9 +971,9 @@ getMicroKernelParams(const llvm::TargetT + auto Nvec = RegisterBitwidth / ElementSize; + if (Nvec == 0) + Nvec = 2; +- int Nr = +- ceil(sqrt(Nvec * LatencyVectorFma * ThroughputVectorFma) / Nvec) * Nvec; +- int Mr = ceil(Nvec * LatencyVectorFma * ThroughputVectorFma / Nr); ++ double _tmp = Nvec * LatencyVectorFma * ThroughputVectorFma; ++ int Nr = ceil(sqrt(_tmp) / Nvec) * Nvec; ++ int Mr = ceil(_tmp / Nr); + return {Mr, Nr}; + } + diff --git a/debian/patches/series b/debian/patches/series index 4872b71..b85799d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -48,3 +48,4 @@ disable-error-xray.diff lldb-disable-swig-error.diff dyson-coreutils.patch dyson-gnu-ld.patch +dyson-math.patch -- cgit v1.2.3