summaryrefslogtreecommitdiff
path: root/sci-libs/miopen/files/miopen-4.2.0-gcc11-numeric_limits.patch
blob: 73997ce5d4dba5310255b7e4224d60f4a342582c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
See: https://stackoverflow.com/questions/4798936/numeric-limits-was-not-declared-in-this-scope-no-matching-function-for-call-t

https://www.gnu.org/software/gcc/gcc-11/porting_to.html#header-dep-changes

--- MIOpen-rocm-4.2.0/src/include/miopen/float_equal.hpp
+++ MIOpen-rocm-4.2.0/src/include/miopen/float_equal.hpp
@@ -29,6 +29,7 @@
 #include <algorithm>
 #include <cmath>
 #include <numeric>
+#include <limits>
 #ifdef _MSC_VER
 #include <iso646.h>
 #endif