diff --git a/tests/src/deviceLib/hipDoublePrecisionMathHost.cpp b/tests/src/deviceLib/hipDoublePrecisionMathHost.cpp index 94fe912e08..00815768ea 100644 --- a/tests/src/deviceLib/hipDoublePrecisionMathHost.cpp +++ b/tests/src/deviceLib/hipDoublePrecisionMathHost.cpp @@ -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); diff --git a/tests/src/deviceLib/hipSinglePrecisionMathHost.cpp b/tests/src/deviceLib/hipSinglePrecisionMathHost.cpp index 8a95bcaad2..51f09a9c0b 100644 --- a/tests/src/deviceLib/hipSinglePrecisionMathHost.cpp +++ b/tests/src/deviceLib/hipSinglePrecisionMathHost.cpp @@ -56,7 +56,9 @@ __host__ void single_precision_math_functions() expm1f(0.0f); fabsf(1.0f); fdimf(1.0f, 0.0f); +#if defined(__HIP_PLATFORM_HCC__) fdividef(0.0f, 1.0f); +#endif floorf(0.0f); fmaf(1.0f, 2.0f, 3.0f); fmaxf(0.0f, 0.0f); @@ -86,8 +88,10 @@ __host__ void single_precision_math_functions() nanf("1"); nearbyintf(0.0f); //nextafterf(0.0f); +#if defined(__HIP_PLATFORM_HCC__) norm3df(1.0f, 0.0f, 0.0f); norm4df(1.0f, 0.0f, 0.0f, 0.0f); +#endif normcdff(0.0f); normcdfinvf(1.0f); //fX = 1.0f; normf(1, &fX); @@ -95,11 +99,15 @@ __host__ void single_precision_math_functions() rcbrtf(1.0f); remainderf(2.0f, 1.0f); remquof(1.0f, 2.0f, &iX); +#if defined(__HIP_PLATFORM_HCC__) rhypotf(0.0f, 1.0f); +#endif rintf(1.0f); +#if defined(__HIP_PLATFORM_HCC__) rnorm3df(0.0f, 0.0f, 1.0f); rnorm4df(0.0f, 0.0f, 0.0f, 1.0f); fX = 1.0f; rnormf(1, &fX); +#endif roundf(0.0f); rsqrtf(1.0f); scalblnf(0.0f, 1);