From 83f2ce719adfcae6433026b884e916d9c0b0ce65 Mon Sep 17 00:00:00 2001 From: Meng Mengmeng Date: Wed, 15 Jul 2015 01:22:34 +0800 Subject: correct ULP value in utests Set a global function in utests to get the right ULP value. --- utests/builtin_pow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'utests/builtin_pow.cpp') diff --git a/utests/builtin_pow.cpp b/utests/builtin_pow.cpp index a8523d30..f5864483 100644 --- a/utests/builtin_pow.cpp +++ b/utests/builtin_pow.cpp @@ -28,6 +28,7 @@ static void builtin_pow(void) { // Setup kernel and buffers int k, i, index_cur; + float ULPSIZE_NO_FAST_MATH = 16.0; float gpu_data[max_function * count_input] = {0}, cpu_data[max_function * count_input] = {0}; for(i=0; i