[Beignet] [PATCH V2 0/9] Half type support

Xiuli Pan xiuli.pan at intel.com
Mon Aug 8 03:31:18 UTC 2016


From: Pan Xiuli <xiuli.pan at intel.com>

This patch set add few half type support:
1. half vload/store
2. half type geo builtin function dot
3. half type mad

Pan Xiuli (9):
  Utest: Move half related helper function into utest helper
  Utest: Add as_float as_uint helper function
  Libocl: Add vload\store for half type
  Utest: Add test case for half type vload\store
  Libocl: Add half type dot
  Backend: Add half type support for sub group functions
  Utest: Add test for half type subgroup functions
  Backend: Add half type for mad
  Utest: Add half type mad test case

 backend/src/backend/gen8_context.cpp        |   6 ++
 backend/src/backend/gen8_encoder.cpp        |  13 ++-
 backend/src/backend/gen_insn_compact.cpp    |   2 +
 backend/src/backend/gen_insn_selection.cpp  |   6 +-
 backend/src/libocl/include/ocl_geometric.h  |   4 +
 backend/src/libocl/include/ocl_vload.h      |   1 +
 backend/src/libocl/src/ocl_geometric.cl     |  12 +++
 backend/src/libocl/src/ocl_vload.cl         |   1 +
 backend/src/libocl/tmpl/ocl_math.tmpl.cl    |   8 +-
 backend/src/libocl/tmpl/ocl_simd.tmpl.cl    |  10 ++
 backend/src/libocl/tmpl/ocl_simd.tmpl.h     |  13 +++
 kernels/compiler_math_3op.cl                |  17 ++-
 kernels/compiler_subgroup_broadcast.cl      |  16 ++-
 kernels/compiler_subgroup_reduce.cl         |  19 ++++
 kernels/compiler_subgroup_scan_exclusive.cl |  19 ++++
 kernels/compiler_subgroup_scan_inclusive.cl |  19 ++++
 kernels/compiler_vector_load_store.cl       |   8 +-
 utests/compiler_half.cpp                    | 155 ++++------------------------
 utests/compiler_math_3op.cpp                |  58 ++++++++++-
 utests/compiler_subgroup_broadcast.cpp      |  27 ++++-
 utests/compiler_subgroup_reduce.cpp         |  98 ++++++++++++++++--
 utests/compiler_subgroup_scan_exclusive.cpp | 101 ++++++++++++++++--
 utests/compiler_subgroup_scan_inclusive.cpp |  94 +++++++++++++++--
 utests/compiler_vector_load_store.cpp       |  32 ++++--
 utests/utest_helper.cpp                     | 129 +++++++++++++++++++++++
 utests/utest_helper.hpp                     |  14 +++
 26 files changed, 692 insertions(+), 190 deletions(-)

-- 
2.7.4



More information about the Beignet mailing list