Merge pull request #688 from aaronenyeshi/fix-sinf-cosf-ocml

Use sinf and cosf from ocml device libs
This commit is contained in:
Maneesh Gupta
2018-10-18 16:39:20 +05:30
committed by GitHub
commit 30523b72a2
@@ -507,7 +507,7 @@ float ynf(int n, float x)
// BEGIN INTRINSICS
__DEVICE__
inline
float __cosf(float x) { return __llvm_amdgcn_cos_f32(x); }
float __cosf(float x) { return __ocml_cos_f32(x); }
__DEVICE__
inline
float __exp10f(float x) { return __ocml_exp10_f32(x); }
@@ -643,7 +643,7 @@ void __sincosf(float x, float* sptr, float* cptr)
}
__DEVICE__
inline
float __sinf(float x) { return __llvm_amdgcn_sin_f32(x); }
float __sinf(float x) { return __ocml_sin_f32(x); }
__DEVICE__
inline
float __tanf(float x) { return __ocml_tan_f32(x); }