removed host math functions from math_functions.h

Change-Id: I90d8784e2d6b58c6fade9f0fa12c0db3ee417d3e
This commit is contained in:
Aditya Atluri
2017-01-27 17:38:43 -06:00
والد 66dc2d42db
کامیت 60013396f6
5فایلهای تغییر یافته به همراه41 افزوده شده و 80 حذف شده
@@ -27,8 +27,9 @@ THE SOFTWARE.
*/
#include <hip/hip_runtime.h>
#include <hip/math_functions.h>
//#include <hip/math_functions.h>
#include "test_common.h"
#include<cmath>
#pragma GCC diagnostic ignored "-Wall"
#pragma clang diagnostic ignored "-Wunused-variable"
@@ -50,14 +51,14 @@ __host__ void double_precision_math_functions()
copysign(1.0, -2.0);
cos(0.0);
cosh(0.0);
cospi(0.0);
//cospi(0.0);
//cyl_bessel_i0(0.0);
//cyl_bessel_i1(0.0);
erf(0.0);
erfc(0.0);
erfcinv(2.0);
erfcx(0.0);
erfinv(1.0);
//erfcinv(2.0);
//erfcx(0.0);
//erfinv(1.0);
exp(0.0);
exp10(0.0);
exp2(0.0);
@@ -93,36 +94,37 @@ __host__ void double_precision_math_functions()
nan("1");
nearbyint(0.0);
//nextafter(0.0);
fX = 1.0; norm(1, &fX);
fX = 1.0; //norm(1, &fX);
#if defined(__HIP_PLATFORM_HCC__)
norm3d(1.0, 0.0, 0.0);
norm4d(1.0, 0.0, 0.0, 0.0);
//norm3d(1.0, 0.0, 0.0);
//norm4d(1.0, 0.0, 0.0, 0.0);
#endif
// normcdf(0.0);
// normcdfinv(1.0);
pow(1.0, 0.0);
rcbrt(1.0);
//rcbrt(1.0);
remainder(2.0, 1.0);
remquo(1.0, 2.0, &iX);
#if defined(__HIP_PLATFORM_HCC__)
rhypot(0.0, 1.0);
//rhypot(0.0, 1.0);
#endif
rint(1.0);
#if defined(__HIP_PLATFORM_HCC__)
fX = 1.0; rnorm(1, &fX);
rnorm3d(0.0, 0.0, 1.0);
rnorm4d(0.0, 0.0, 0.0, 1.0);
fX = 1.0; //rnorm(1, &fX);
//rnorm3d(0.0, 0.0, 1.0);
//rnorm4d(0.0, 0.0, 0.0, 1.0);
#endif
round(0.0);
rsqrt(1.0);
//rsqrt(1.0);
scalbln(0.0, 1);
scalbn(0.0, 1);
signbit(1.0);
sin(0.0);
sincos(0.0, &fX, &fY);
sincospi(0.0, &fX, &fY);
//sincospi(0.0, &fX, &fY);
sinh(0.0);
sinpi(0.0);
//sinpi(0.0);
sqrt(0.0);
tan(0.0);
tanh(0.0);