pk_float4_e2m1_t Struct Reference#
Public Types |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members  
  ck_tile::pk_float4_e2m1_t Struct Reference
  #include <pk_fp4.hpp>
Public Types | |
| using | raw_type = uint8_t | 
| using | type = raw_type | 
Public Member Functions | |
| constexpr CK_TILE_HOST_DEVICE | pk_float4_e2m1_t () | 
| template<typename T , typename = std::enable_if_t<std::is_integral_v<T>>> | |
| constexpr CK_TILE_HOST_DEVICE | pk_float4_e2m1_t (T init) | 
| constexpr CK_TILE_HOST_DEVICE | pk_float4_e2m1_t (float init) | 
| constexpr CK_TILE_HOST_DEVICE | operator type () const | 
| constexpr CK_TILE_HOST_DEVICE raw_type & | get () | 
| constexpr CK_TILE_HOST_DEVICE raw_type | get () const | 
| constexpr CK_TILE_HOST_DEVICE | operator float () const | 
| constexpr CK_TILE_HOST_DEVICE | operator fp32x2_t () const | 
| constexpr CK_TILE_HOST_DEVICE | operator fp16_t () const | 
| constexpr CK_TILE_HOST_DEVICE | operator fp16x2_t () const | 
| constexpr CK_TILE_HOST_DEVICE | operator bf16_t () const | 
| constexpr CK_TILE_HOST_DEVICE | operator bf16x2_t () const | 
| template<index_t I> | |
| constexpr CK_TILE_HOST_DEVICE raw_type | unpack (number< I >) const | 
Static Public Member Functions | |
| constexpr static CK_TILE_HOST_DEVICE pk_float4_e2m1_t | pack (const type x0, const type x1) | 
Public Attributes | |
| raw_type | data | 
Static Public Attributes | |
| static constexpr int | exponent = 2 | 
| static constexpr int | mantissa = 1 | 
| static constexpr int | bias = 1 | 
Member Typedef Documentation
◆ raw_type
| using ck_tile::pk_float4_e2m1_t::raw_type = uint8_t | 
◆ type
Constructor & Destructor Documentation
◆ pk_float4_e2m1_t() [1/3]
      
  | 
  inlineconstexpr | 
◆ pk_float4_e2m1_t() [2/3]
template<typename T , typename  = std::enable_if_t<std::is_integral_v<T>>> 
      
  | 
  inlineconstexpr | 
◆ pk_float4_e2m1_t() [3/3]
      
  | 
  inlineexplicitconstexpr | 
Member Function Documentation
◆ get() [1/2]
      
  | 
  inlineconstexpr | 
◆ get() [2/2]
      
  | 
  inlineconstexpr | 
◆ operator bf16_t()
      
  | 
  constexpr | 
◆ operator bf16x2_t()
      
  | 
  constexpr | 
◆ operator float()
      
  | 
  constexpr | 
◆ operator fp16_t()
      
  | 
  constexpr | 
◆ operator fp16x2_t()
      
  | 
  constexpr | 
◆ operator fp32x2_t()
      
  | 
  constexpr | 
◆ operator type()
      
  | 
  inlineconstexpr | 
◆ pack()
      
  | 
  inlinestaticconstexpr | 
◆ unpack()
template<index_t I> 
      
  | 
  constexpr | 
Member Data Documentation
◆ bias
      
  | 
  staticconstexpr | 
◆ data
| raw_type ck_tile::pk_float4_e2m1_t::data | 
◆ exponent
      
  | 
  staticconstexpr | 
◆ mantissa
      
  | 
  staticconstexpr | 
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-7.1.0/include/ck_tile/core/numeric/pk_fp4.hpp