1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
#include "cuda_fp16.h"
#include "cuda_bf16.h"
struct half3
{
__half x;
__half y;
__half z;
};
struct __align__(8) half4
{
__half x;
__half y;
__half z;
__half w;
};
struct bf163
{
__nv_bfloat16 x;
__nv_bfloat16 y;
__nv_bfloat16 z;
};
struct __align__(8) bf164
{
__nv_bfloat16 x;
__nv_bfloat16 y;
__nv_bfloat16 z;
__nv_bfloat16 w;
};
struct bool2
{
bool x;
bool y;
};
struct bool3
{
bool x;
bool y;
bool z;
};
struct bool4
{
bool x;
bool y;
bool z;
bool w;
};