DPC++ Runtime
Runtime libraries for oneAPI DPC++
half_type.hpp File Reference
#include <CL/sycl/detail/defines.hpp>
#include <CL/sycl/detail/export.hpp>
#include <CL/sycl/detail/type_traits.hpp>
#include <functional>
#include <iostream>
#include <limits>
Include dependency graph for half_type.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  cl::sycl::detail::host_half_impl::half
class  cl::sycl::detail::host_half_impl::half_v2
struct  cl::sycl::detail::half_impl::half_vec< NumElements >
class  cl::sycl::detail::half_impl::half
struct  std::hash< cl::sycl::half >
struct  std::numeric_limits< cl::sycl::half >


 We provide new interfaces for matrix muliply in this patch:


#define __builtin_expect(a, b)   (a)
#define OP(op, op_eq)
#define OP(op)


using cl::sycl::detail::half_impl::StorageT = detail::host_half_impl::half_v2
using cl::sycl::detail::half_impl::BIsRepresentationT = half
using cl::sycl::detail::half_impl::Vec2StorageT = half_vec< 2 >
using cl::sycl::detail::half_impl::Vec3StorageT = half_vec< 3 >
using cl::sycl::detail::half_impl::Vec4StorageT = half_vec< 4 >
using cl::sycl::detail::half_impl::Vec8StorageT = half_vec< 8 >
using cl::sycl::detail::half_impl::Vec16StorageT = half_vec< 16 >


__SYCL_CONSTEXPR_HALF uint16_t cl::sycl::detail::float2Half (const float &Val)
__SYCL_CONSTEXPR_HALF float cl::sycl::detail::half2Float (const uint16_t &Val)
template<typename T >
T cl::sycl::detail::cast_if_host_half (T val)
float cl::sycl::detail::cast_if_host_half (half_impl::half val)

Macro Definition Documentation

◆ __builtin_expect

#define __builtin_expect (   a,
)    (a)

Definition at line 20 of file half_type.hpp.



Definition at line 30 of file half_type.hpp.

◆ OP [1/2]

#define OP (   op)

Definition at line 505 of file half_type.hpp.

◆ OP [2/2]

#define OP (   op,

Definition at line 505 of file half_type.hpp.