We're trying to compile Eigen on a platform whose system headers have #define'd "FP32" for its own use, which means the "union FP32" in src/Core/arch/CUDA/Half.h causes compilation errors. I went looking for flags to control the inclusion of this, and was not able to. What worked for us is to add an #ifdef guard around some include statements in Eigen/Core:
diff --git a/Eigen/Core b/Eigen/Core
index c74340b..7846877 100644
@@ -432,10 +432,12 @@ using std::ptrdiff_t;
+#if defined EIGEN_CUDACC
// Half float support
#if defined EIGEN_VECTORIZE_CUDA
I renamed it in default and 3.3 branches:
-- GitLab Migration Automatic Message --
This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1590.