aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/GPU
diff options
context:
space:
mode:
authorGravatar Christian von Schultz <christian.git@vonschultz.se>2018-10-22 21:14:40 +0200
committerGravatar Christian von Schultz <christian.git@vonschultz.se>2018-10-22 21:14:40 +0200
commit4a40b3785dc81112856d517676dbcfa9204e16df (patch)
tree353f8aed3b6e7412745acfc7f532aceeec1f5735 /Eigen/src/Core/arch/GPU
parent14054e217fa76ead792194262ff31bd9a72fe58c (diff)
Collapsed revision (based on pull request PR-325)
* Support compiling without IO streams Add the preprocessor definition EIGEN_NO_IO which, if defined, disables all use of the IO streams part of the standard library.
Diffstat (limited to 'Eigen/src/Core/arch/GPU')
-rw-r--r--Eigen/src/Core/arch/GPU/Half.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/GPU/Half.h b/Eigen/src/Core/arch/GPU/Half.h
index 65b38bbfb..f87d8a18c 100644
--- a/Eigen/src/Core/arch/GPU/Half.h
+++ b/Eigen/src/Core/arch/GPU/Half.h
@@ -607,10 +607,12 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half (max)(const half& a, const half& b) {
#endif
}
+#ifndef EIGEN_NO_IO
EIGEN_ALWAYS_INLINE std::ostream& operator << (std::ostream& os, const half& v) {
os << static_cast<float>(v);
return os;
}
+#endif
} // end namespace half_impl