Fixed compilation errors being observed on windows
[ROCm/clr commit: c4f6d58354]
This commit is contained in:
Regular → Executable
+18
-2
@@ -59,7 +59,9 @@ __host__ void double_precision_math_functions() {
|
|||||||
// erfcx(0.0);
|
// erfcx(0.0);
|
||||||
// erfinv(1.0);
|
// erfinv(1.0);
|
||||||
exp(0.0);
|
exp(0.0);
|
||||||
|
#ifdef __unix__
|
||||||
exp10(0.0);
|
exp10(0.0);
|
||||||
|
#endif
|
||||||
exp2(0.0);
|
exp2(0.0);
|
||||||
expm1(0.0);
|
expm1(0.0);
|
||||||
fabs(1.0);
|
fabs(1.0);
|
||||||
@@ -75,9 +77,15 @@ __host__ void double_precision_math_functions() {
|
|||||||
std::isfinite(0.0);
|
std::isfinite(0.0);
|
||||||
std::isinf(0.0);
|
std::isinf(0.0);
|
||||||
std::isnan(0.0);
|
std::isnan(0.0);
|
||||||
j0(0.0);
|
#ifdef __unix__
|
||||||
j1(0.0);
|
j0(1.0);
|
||||||
|
j1(1.0);
|
||||||
jn(-1.0, 1.0);
|
jn(-1.0, 1.0);
|
||||||
|
#elif _WIN64
|
||||||
|
_j0(0.0);
|
||||||
|
_j1(0.0);
|
||||||
|
_jn(-1.0, 1.0);
|
||||||
|
#endif
|
||||||
ldexp(0.0, 0);
|
ldexp(0.0, 0);
|
||||||
// lgamma(1.0);
|
// lgamma(1.0);
|
||||||
llrint(0.0);
|
llrint(0.0);
|
||||||
@@ -120,7 +128,9 @@ __host__ void double_precision_math_functions() {
|
|||||||
scalbn(0.0, 1);
|
scalbn(0.0, 1);
|
||||||
std::signbit(1.0);
|
std::signbit(1.0);
|
||||||
sin(0.0);
|
sin(0.0);
|
||||||
|
#ifdef __unix__
|
||||||
sincos(0.0, &fX, &fY);
|
sincos(0.0, &fX, &fY);
|
||||||
|
#endif
|
||||||
// sincospi(0.0, &fX, &fY);
|
// sincospi(0.0, &fX, &fY);
|
||||||
sinh(0.0);
|
sinh(0.0);
|
||||||
// sinpi(0.0);
|
// sinpi(0.0);
|
||||||
@@ -129,9 +139,15 @@ __host__ void double_precision_math_functions() {
|
|||||||
tanh(0.0);
|
tanh(0.0);
|
||||||
tgamma(2.0);
|
tgamma(2.0);
|
||||||
trunc(0.0);
|
trunc(0.0);
|
||||||
|
#ifdef __unix__
|
||||||
y0(1.0);
|
y0(1.0);
|
||||||
y1(1.0);
|
y1(1.0);
|
||||||
yn(1, 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(); }
|
static void compileOnHost() { double_precision_math_functions(); }
|
||||||
|
|||||||
Regular → Executable
@@ -58,7 +58,9 @@ __host__ void single_precision_math_functions() {
|
|||||||
// erfcxf(0.0f);
|
// erfcxf(0.0f);
|
||||||
erff(0.0f);
|
erff(0.0f);
|
||||||
// erfinvf(1.0f);
|
// erfinvf(1.0f);
|
||||||
|
#ifdef __unix__
|
||||||
exp10f(0.0f);
|
exp10f(0.0f);
|
||||||
|
#endif
|
||||||
exp2f(0.0f);
|
exp2f(0.0f);
|
||||||
expf(0.0f);
|
expf(0.0f);
|
||||||
expm1f(0.0f);
|
expm1f(0.0f);
|
||||||
@@ -78,9 +80,11 @@ __host__ void single_precision_math_functions() {
|
|||||||
std::isfinite(0.0f);
|
std::isfinite(0.0f);
|
||||||
std::isinf(0.0f);
|
std::isinf(0.0f);
|
||||||
std::isnan(0.0f);
|
std::isnan(0.0f);
|
||||||
|
#ifdef __unix__
|
||||||
j0f(0.0f);
|
j0f(0.0f);
|
||||||
j1f(0.0f);
|
j1f(0.0f);
|
||||||
jnf(-1.0f, 1.0f);
|
jnf(-1.0f, 1.0f);
|
||||||
|
#endif
|
||||||
ldexpf(0.0f, 0);
|
ldexpf(0.0f, 0);
|
||||||
lgammaf(1.0f);
|
lgammaf(1.0f);
|
||||||
llrintf(0.0f);
|
llrintf(0.0f);
|
||||||
@@ -121,7 +125,9 @@ __host__ void single_precision_math_functions() {
|
|||||||
scalblnf(0.0f, 1);
|
scalblnf(0.0f, 1);
|
||||||
scalbnf(0.0f, 1);
|
scalbnf(0.0f, 1);
|
||||||
std::signbit(1.0f);
|
std::signbit(1.0f);
|
||||||
|
#ifdef __unix__
|
||||||
sincosf(0.0f, &fX, &fY);
|
sincosf(0.0f, &fX, &fY);
|
||||||
|
#endif
|
||||||
// sincospif(0.0f, &fX, &fY);
|
// sincospif(0.0f, &fX, &fY);
|
||||||
sinf(0.0f);
|
sinf(0.0f);
|
||||||
sinhf(0.0f);
|
sinhf(0.0f);
|
||||||
@@ -131,9 +137,11 @@ __host__ void single_precision_math_functions() {
|
|||||||
tanhf(0.0f);
|
tanhf(0.0f);
|
||||||
tgammaf(2.0f);
|
tgammaf(2.0f);
|
||||||
truncf(0.0f);
|
truncf(0.0f);
|
||||||
|
#ifdef __unix__
|
||||||
y0f(1.0f);
|
y0f(1.0f);
|
||||||
y1f(1.0f);
|
y1f(1.0f);
|
||||||
ynf(1, 1.0f);
|
ynf(1, 1.0f);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void compileOnHost() { single_precision_math_functions(); }
|
static void compileOnHost() { single_precision_math_functions(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user