Added support for hardware conversion between fp16 and full floats whenever

possible.
This commit is contained in:
Benoit Steiner
2016-04-06 17:11:31 -07:00
parent 165150e896
commit 532fdf24cb
2 changed files with 15 additions and 0 deletions

View File

@@ -204,6 +204,11 @@
#endif
#endif
#if defined(__F16C__)
// We can use the optimized fp16 to float and float to fp16 conversion routines
#define EIGEN_HAS_FP16_C
#endif
#if defined __CUDACC__
#define EIGEN_VECTORIZE_CUDA
#include <vector_types.h>