DPC++ Runtime
Runtime libraries for oneAPI Data Parallel C++
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 <array>
#include <cmath>
#include <cstdint>
#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)


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)
std::ostream & operator<< (std::ostream &O, cl::sycl::half const &rhs)
std::istream & operator>> (std::istream &I, cl::sycl::half &rhs)

Macro Definition Documentation

◆ __builtin_expect

#define __builtin_expect (   a,
)    (a)

Definition at line 23 of file half_type.hpp.



Definition at line 33 of file half_type.hpp.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  O,
cl::sycl::half const &  rhs 

Definition at line 518 of file half_type.hpp.

◆ operator>>()

std::istream& operator>> ( std::istream &  I,
cl::sycl::half rhs 

Definition at line 523 of file half_type.hpp.