[beignet] 01/07: Add more debug output to builtin_pow test

Rebecca Palmer rnpalmer-guest at moszumanska.debian.org
Fri Feb 6 20:13:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

rnpalmer-guest pushed a commit to branch master
in repository beignet.

commit a40beece477f72d591491cacd79c7d5d43c3cef6
Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
Date:   Fri Feb 6 13:19:45 2015 +0000

    Add more debug output to builtin_pow test
    
    This reveals that the test "failure" is an unhandled denormal,
    which is not a bug as we don't claim to support them
---
 debian/changelog                       | 1 +
 debian/patches/Enable-test-debug.patch | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5df78ae..170bfb8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ beignet (1.0.1-1) UNRELEASED; urgency=medium
   * Use -Bsymbolic to make sure we jump to our LLVM and not mesa's.
     (Closes: #768185)
   * Rename to beignet-opencl-icd for consistency.
+  * Add more debug output to builtin_pow test.
 
  -- Andreas Beckmann <anbe at debian.org>  Fri, 23 Jan 2015 23:17:24 +0100
 
diff --git a/debian/patches/Enable-test-debug.patch b/debian/patches/Enable-test-debug.patch
index 4fc96ae..d040c87 100644
--- a/debian/patches/Enable-test-debug.patch
+++ b/debian/patches/Enable-test-debug.patch
@@ -177,6 +177,15 @@ Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
    float gpu_data[max_function * count_input] = {0}, cpu_data[max_function * count_input] = {0};
  
    for(i=0; i<count_input_ori;i++)
+@@ -77,7 +78,7 @@ static void builtin_pow(void)
+            (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)   )
+       {
+-        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]);
++        printf_c("%d/%d: x:%f, y:%f -> gpu:%e  cpu:%e err: %e ULP: %e\n", k, i, input_data1[k], input_data2[k], gpu_data[index_cur], cpu_data[index_cur],gpu_data[index_cur]-cpu_data[index_cur],cl_FLT_ULP(cpu_data[index_cur]));
+       }
+       else
+         printf("%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]);
 @@ -93,6 +94,7 @@ static void builtin_pow(void)
  #endif
      }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/beignet.git



More information about the Pkg-opencl-commits mailing list