[Beignet] [PATCH] utests: fix a typo in test cases.
Zhigang Gong
zhigang.gong at intel.com
Thu Nov 20 20:12:04 PST 2014
due to a stray . at utests/builtin_pow.cpp:79:112.
Reported by "Rebecca N. Palmer" <rebecca_palmer at zoho.com>.
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
utests/builtin_pow.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utests/builtin_pow.cpp b/utests/builtin_pow.cpp
index 93863a5..c0361e1 100644
--- a/utests/builtin_pow.cpp
+++ b/utests/builtin_pow.cpp
@@ -75,7 +75,7 @@ static void builtin_pow(void)
#if udebug
if ( (isinf(cpu_data[index_cur]) && !isinf(gpu_data[index_cur])) ||
(isnan(cpu_data[index_cur]) && !isnan(gpu_data[index_cur])) ||
- (fabs(gpu_data[index_cur] - cpu_data[index_cur]) > cl_FLT_ULP(cpu_data[index_cur]) * ULPSIZE_FACTOR.) )
+ (fabs(gpu_data[index_cur] - cpu_data[index_cur]) > cl_FLT_ULP(cpu_data[index_cur]) * ULPSIZE_FACTOR) )
{
printf_c("%d/%d: x:%f, y:%f -> gpu:%f cpu:%f\n", k, i, input_data1[k], input_data2[k], gpu_data[index_cur], cpu_data[index_cur]);
}
--
1.8.3.2
More information about the Beignet
mailing list