Merge pull request #1300 from amd-lthakur/windows-Single-Double-Precision-Math-Host-fixes

Fixed compilation errors being observed on windows
Этот коммит содержится в:
Evgeny Mankov
2019-08-09 00:15:48 +03:00
коммит произвёл GitHub
родитель 4fe860e55f d18160920e
Коммит 20628bd03f
2 изменённых файлов: 24 добавлений и 0 удалений
+16
Просмотреть файл
@@ -59,7 +59,9 @@ __host__ void double_precision_math_functions() {
// erfcx(0.0);
// erfinv(1.0);
exp(0.0);
#ifdef __unix__
exp10(0.0);
#endif
exp2(0.0);
expm1(0.0);
fabs(1.0);
@@ -75,9 +77,15 @@ __host__ void double_precision_math_functions() {
std::isfinite(0.0);
std::isinf(0.0);
std::isnan(0.0);
#ifdef __unix__
j0(0.0);
j1(0.0);
jn(-1.0, 1.0);
#elif _WIN64
_j0(0.0);
_j1(0.0);
_jn(-1.0, 1.0);
#endif
ldexp(0.0, 0);
// lgamma(1.0);
llrint(0.0);
@@ -120,7 +128,9 @@ __host__ void double_precision_math_functions() {
scalbn(0.0, 1);
std::signbit(1.0);
sin(0.0);
#ifdef _unix__
sincos(0.0, &fX, &fY);
#endif
// sincospi(0.0, &fX, &fY);
sinh(0.0);
// sinpi(0.0);
@@ -129,9 +139,15 @@ __host__ void double_precision_math_functions() {
tanh(0.0);
tgamma(2.0);
trunc(0.0);
#ifdef __unix__
y0(1.0);
y1(1.0);
yn(1, 1.0);
#elif _WIN64
_y0(1.0);
_y1(1.0);
_yn(1, 1.0);
#endif
}
static void compileOnHost() { double_precision_math_functions(); }
+8
Просмотреть файл
@@ -58,7 +58,9 @@ __host__ void single_precision_math_functions() {
// erfcxf(0.0f);
erff(0.0f);
// erfinvf(1.0f);
#ifdef __unix__
exp10f(0.0f);
#endif
exp2f(0.0f);
expf(0.0f);
expm1f(0.0f);
@@ -78,9 +80,11 @@ __host__ void single_precision_math_functions() {
std::isfinite(0.0f);
std::isinf(0.0f);
std::isnan(0.0f);
#ifdef __unix__
j0f(0.0f);
j1f(0.0f);
jnf(-1.0f, 1.0f);
#endif
ldexpf(0.0f, 0);
lgammaf(1.0f);
llrintf(0.0f);
@@ -121,7 +125,9 @@ __host__ void single_precision_math_functions() {
scalblnf(0.0f, 1);
scalbnf(0.0f, 1);
std::signbit(1.0f);
#ifdef __unix__
sincosf(0.0f, &fX, &fY);
#endif
// sincospif(0.0f, &fX, &fY);
sinf(0.0f);
sinhf(0.0f);
@@ -131,9 +137,11 @@ __host__ void single_precision_math_functions() {
tanhf(0.0f);
tgammaf(2.0f);
truncf(0.0f);
#ifdef __unix__
y0f(1.0f);
y1f(1.0f);
ynf(1, 1.0f);
#endif
}
static void compileOnHost() { single_precision_math_functions(); }