From 67145cb1a320ff44722c7ac58cfc88f2a2afe6cf Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 23 Nov 2019 17:02:54 -0500 Subject: [PATCH] Work around ppc64[le] lack of Float16 native hardware support --- include/kalmar_math.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/kalmar_math.h b/include/kalmar_math.h index 21fc8729239..d2ca4f9dc17 100644 --- a/include/kalmar_math.h +++ b/include/kalmar_math.h @@ -10,6 +10,10 @@ #include #include +#ifdef __PPC64__ +#define _Float16 __fp16 +#endif + extern "C" _Float16 __ocml_acos_f16(_Float16 x) [[hc]]; extern "C" float __ocml_acos_f32(float x) [[hc]]; extern "C" double __ocml_acos_f64(double x) [[hc]];