[Beignet] [PATCH] Fix utest compiler_group_size4 error.

Ruiling Song ruiling.song at intel.com
Fri Aug 30 01:29:32 PDT 2013


Per opencl spec, bitfield is not supported.

Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
 kernels/compiler_group_size.cl |    6 +++---
 utests/compiler_group_size.cpp |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/kernels/compiler_group_size.cl b/kernels/compiler_group_size.cl
index 0fe88c1..4e2c333 100644
--- a/kernels/compiler_group_size.cl
+++ b/kernels/compiler_group_size.cl
@@ -11,9 +11,9 @@ compiler_group_size(__global unsigned int *dst)
 }
 
 struct xyz{
-  unsigned b:16;
-  unsigned e:16;
-  unsigned o;
+  unsigned short b;
+  unsigned short e;
+  unsigned int o;
 };
 
 __kernel void
diff --git a/utests/compiler_group_size.cpp b/utests/compiler_group_size.cpp
index 02544b2..724d6e8 100644
--- a/utests/compiler_group_size.cpp
+++ b/utests/compiler_group_size.cpp
@@ -2,9 +2,9 @@
 #include <string.h>
 
 struct xyz{
-  unsigned b:16;
-  unsigned e:16;
-  unsigned o;
+  unsigned short b;
+  unsigned short e;
+  unsigned int o;
 };
 
 void compiler_group_size1(void)
-- 
1.7.9.5



More information about the Beignet mailing list