Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around ppc64[le] lack of Float16 native hardware support #1322

Open
wants to merge 1 commit into
base: roc-2.9.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/kalmar_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#include <cmath>
#include <stdexcept>

#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]];
Expand Down