[beignet] 02/03: Fix test runner on i386, and enable debug output in profiling_exec

Rebecca Palmer rnpalmer-guest at moszumanska.debian.org
Tue May 3 20:14:55 UTC 2016


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

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

commit 9951803e54ceae5d0476f38eef3eca5db863f289
Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
Date:   Tue May 3 07:39:16 2016 +0100

    Fix test runner on i386, and enable debug output in profiling_exec
---
 debian/changelog                       |  2 ++
 debian/patches/Enable-test-debug.patch | 21 +++++++++++++++++++--
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 806fff1..61d82e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ beignet (1.1.2-2) UNRELEASED; urgency=medium
 
   [ Rebecca N. Palmer ]
   * Remove SSE(2) #defines to fix i386 FTBFS.
+  * Make test runner work on i386.
+  * Enable debug output in profiling_exec test.
 
  -- Andreas Beckmann <anbe at debian.org>  Mon, 02 May 2016 11:49:55 +0200
 
diff --git a/debian/patches/Enable-test-debug.patch b/debian/patches/Enable-test-debug.patch
index 1792829..4f65c4f 100644
--- a/debian/patches/Enable-test-debug.patch
+++ b/debian/patches/Enable-test-debug.patch
@@ -200,9 +200,9 @@ Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
  export OCL_INTERP_PATH=@LOCAL_INTERP_OBJECT_DIR@
  #disable self-test so we can get something more precise than "doesn't work"
  export OCL_IGNORE_SELF_TEST=1
-+obj-`dpkg-architecture -qDEB_HOST_MULTIARCH`/utests/utest_run -a
++obj-`dpkg-architecture -qDEB_HOST_GNU_TYPE`/utests/utest_run -a
 +export OCL_STRICT_CONFORMANCE=0
-+obj-`dpkg-architecture -qDEB_HOST_MULTIARCH`/utests/utest_run -a
++obj-`dpkg-architecture -qDEB_HOST_GNU_TYPE`/utests/utest_run -a
 --- a/utests/utest_generator.py
 +++ b/utests/utest_generator.py
 @@ -159,6 +159,7 @@ def udebug(ulpSize,returnType,function):
@@ -241,3 +241,20 @@ Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
    %s gpu_data[count_input] = {0}, cpu_data[count_input] = {0}, diff=0.0;
    char log[1024] = {0};
  
+--- beignet-1.1.2.orig/utests/profiling_exec.cpp
++++ beignet-1.1.2/utests/profiling_exec.cpp
+@@ -26,10 +26,10 @@ static void check_profiling_time(cl_ulon
+     double submit_to_start = (double)(start - submit)*1e-9;
+     double start_to_end = (double)(end - start)*1e-9;
+ 
+-    //printf("Profiling info:\n");
+-    //printf("Time from queue to submit : %fms\n", (double)(queue_to_submit) * 1000.f );
+-    //printf( "Time from submit to start : %fms\n", (double)(submit_to_start) * 1000.f );
+-    //printf( "Time from start to end: %fms\n", (double)(start_to_end) * 1000.f );
++    printf("Profiling info:\n");
++    printf("Time from queue to submit : %fms\n", (double)(queue_to_submit) * 1000.f );
++    printf( "Time from submit to start : %fms\n", (double)(submit_to_start) * 1000.f );
++    printf( "Time from start to end: %fms\n", (double)(start_to_end) * 1000.f );
+ 
+     OCL_ASSERTM(queued <= submit, "Enqueue time is later than submit time, invalid\n");
+     OCL_ASSERTM(submit <= start, "Submit time is later than start time, invalid\n");

-- 
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