Directed tests: Guard unsupported host math functions on NVCC

Change-Id: I1145c0e45a913167c82ddc593d8a9027f237c7ba
This commit is contained in:
Maneesh Gupta
2016-09-09 12:07:15 +05:30
parent 51f25f9271
commit a07d51d5b9
2 changed files with 14 additions and 0 deletions
@@ -86,19 +86,25 @@ __host__ void double_precision_math_functions()
nearbyint(0.0);
//nextafter(0.0);
//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);
#endif
normcdf(0.0);
normcdfinv(1.0);
pow(1.0, 0.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);
#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);
#endif
round(0.0);
rsqrt(1.0);
scalbln(0.0, 1);