pk_float4_e2m1_t Struct Reference#
Public Types |
Public Member Functions |
Static Public Member Functions |
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, float scale=1.f) |
constexpr CK_TILE_HOST_DEVICE | operator type () const |
constexpr CK_TILE_HOST_DEVICE type & | get () |
constexpr CK_TILE_HOST_DEVICE type | get () const |
constexpr CK_TILE_HOST_DEVICE float | to_float (float scale=1.f) const |
constexpr CK_TILE_HOST_DEVICE fp32x2_t | to_fp32x2 (float scale=1.f) const |
constexpr CK_TILE_HOST_DEVICE fp16_t | to_fp16 (float scale=1.f) const |
constexpr CK_TILE_HOST_DEVICE fp16x2_t | to_fp16x2 (float scale=1.f) const |
constexpr CK_TILE_HOST_DEVICE bf16_t | to_bf16 (float scale=1.f) const |
constexpr CK_TILE_HOST_DEVICE bf16x2_t | to_bf16x2 (float scale=1.f) 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 pk_float4_e2m1_t | unpack (number< I >) const |
template<index_t I> | |
constexpr CK_TILE_HOST_DEVICE type | _unpack (number< I >) const |
Static Public Member Functions | |
constexpr static CK_TILE_HOST_DEVICE pk_float4_e2m1_t | pack (const pk_float4_e2m1_t &x0, const pk_float4_e2m1_t &x1) |
constexpr static CK_TILE_HOST_DEVICE type | _pack (const type x0, const type x1) |
Public Attributes | |
type | data |
Member Typedef Documentation
◆ raw_type
◆ 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
◆ _pack()
|
inlinestaticconstexpr |
◆ _unpack()
template<index_t I>
|
constexpr |
◆ get() [1/2]
|
inlineconstexpr |
◆ get() [2/2]
|
inlineconstexpr |
◆ operator bf16_t()
|
inlineconstexpr |
◆ operator bf16x2_t()
|
inlineconstexpr |
◆ operator float()
|
inlineconstexpr |
◆ operator fp16_t()
|
inlineconstexpr |
◆ operator fp16x2_t()
|
inlineconstexpr |
◆ operator fp32x2_t()
|
inlineconstexpr |
◆ operator type()
|
inlineconstexpr |
◆ pack()
|
inlinestaticconstexpr |
◆ to_bf16()
|
constexpr |
◆ to_bf16x2()
|
constexpr |
◆ to_float()
|
constexpr |
◆ to_fp16()
|
constexpr |
◆ to_fp16x2()
|
constexpr |
◆ to_fp32x2()
|
constexpr |
◆ unpack()
template<index_t I>
|
inlineconstexpr |
Member Data Documentation
◆ data
type ck_tile::pk_float4_e2m1_t::data |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/ck_tile/core/numeric/pk_fp4.hpp