summarylogtreecommitdiffstats
path: root/fix-hip-version.patch
diff options
context:
space:
mode:
authorSergey Moryakov2020-12-23 20:15:24 +0300
committerGitHub2020-12-23 12:15:24 -0500
commitf42f4871ceccad914695fdb3ccc981a1360be04c (patch)
treef9297b58a7450722d46b4aef12ab3281a518338f /fix-hip-version.patch
parentd3a578b734e5d56fa5d71a2e9773031785a2a7dc (diff)
downloadaur-f42f4871ceccad914695fdb3ccc981a1360be04c.tar.gz
fix old HIP_PATCH_VERSION and build with embedded protobuf (#13)
Diffstat (limited to 'fix-hip-version.patch')
-rw-r--r--fix-hip-version.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/fix-hip-version.patch b/fix-hip-version.patch
new file mode 100644
index 000000000000..44e087efa0cf
--- /dev/null
+++ b/fix-hip-version.patch
@@ -0,0 +1,21 @@
+diff --git a/third_party/eigen/Eigen/src/Core/util/ConfigureVectorization.h b/third_party/eigen/Eigen/src/Core/util/ConfigureVectorization.h
+index 68765d4b2..df2d46832 100644
+--- a/third_party/eigen/Eigen/src/Core/util/ConfigureVectorization.h
++++ b/third_party/eigen/Eigen/src/Core/util/ConfigureVectorization.h
+@@ -401,11 +401,11 @@
+ #include <hip/hip_fp16.h>
+
+ #define HIP_PATCH_WITH_NEW_FP16 18215
+- #if (HIP_VERSION_PATCH < HIP_PATCH_WITH_NEW_FP16)
+- #define EIGEN_HAS_OLD_HIP_FP16
+- // Old HIP implementation does not have a explicit typedef for "half2"
+- typedef __half2 half2;
+- #endif
++// #if (HIP_VERSION_PATCH < HIP_PATCH_WITH_NEW_FP16)
++// #define EIGEN_HAS_OLD_HIP_FP16
++// // Old HIP implementation does not have a explicit typedef for "half2"
++// typedef __half2 half2;
++// #endif
+
+ #endif
+