Skip to content

Commit a345ad8

Browse files
committed
Bad rebase
1 parent f801923 commit a345ad8

File tree

9 files changed

+346
-0
lines changed

9 files changed

+346
-0
lines changed

include/spirv/unified1/spirv.bf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,35 @@ namespace Spv
15901590
Max = 0x7fffffff,
15911591
}
15921592

1593+
[AllowDuplicates, CRepr] public enum CooperativeVectorMatrixLayout
1594+
{
1595+
RowMajorNV = 0,
1596+
ColumnMajorNV = 1,
1597+
InferencingOptimalNV = 2,
1598+
TrainingOptimalNV = 3,
1599+
Max = 0x7fffffff,
1600+
}
1601+
1602+
[AllowDuplicates, CRepr] public enum ComponentType
1603+
{
1604+
Float16NV = 0,
1605+
Float32NV = 1,
1606+
Float64NV = 2,
1607+
SignedInt8NV = 3,
1608+
SignedInt16NV = 4,
1609+
SignedInt32NV = 5,
1610+
SignedInt64NV = 6,
1611+
UnsignedInt8NV = 7,
1612+
UnsignedInt16NV = 8,
1613+
UnsignedInt32NV = 9,
1614+
UnsignedInt64NV = 10,
1615+
SignedInt8PackedNV = 1000491000,
1616+
UnsignedInt8PackedNV = 1000491001,
1617+
FloatE4M3NV = 1000491002,
1618+
FloatE5M2NV = 1000491003,
1619+
Max = 0x7fffffff,
1620+
}
1621+
15931622
[AllowDuplicates, CRepr] public enum Op
15941623
{
15951624
OpNop = 0,

include/spirv/unified1/spirv.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,35 @@ public enum FPEncoding
15891589
Max = 0x7fffffff,
15901590
}
15911591

1592+
public enum CooperativeVectorMatrixLayout
1593+
{
1594+
RowMajorNV = 0,
1595+
ColumnMajorNV = 1,
1596+
InferencingOptimalNV = 2,
1597+
TrainingOptimalNV = 3,
1598+
Max = 0x7fffffff,
1599+
}
1600+
1601+
public enum ComponentType
1602+
{
1603+
Float16NV = 0,
1604+
Float32NV = 1,
1605+
Float64NV = 2,
1606+
SignedInt8NV = 3,
1607+
SignedInt16NV = 4,
1608+
SignedInt32NV = 5,
1609+
SignedInt64NV = 6,
1610+
UnsignedInt8NV = 7,
1611+
UnsignedInt16NV = 8,
1612+
UnsignedInt32NV = 9,
1613+
UnsignedInt64NV = 10,
1614+
SignedInt8PackedNV = 1000491000,
1615+
UnsignedInt8PackedNV = 1000491001,
1616+
FloatE4M3NV = 1000491002,
1617+
FloatE5M2NV = 1000491003,
1618+
Max = 0x7fffffff,
1619+
}
1620+
15921621
public enum Op
15931622
{
15941623
OpNop = 0,

include/spirv/unified1/spirv.h

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,33 @@ typedef enum SpvFPEncoding_ {
15291529
SpvFPEncodingMax = 0x7fffffff,
15301530
} SpvFPEncoding;
15311531

1532+
typedef enum SpvCooperativeVectorMatrixLayout_ {
1533+
SpvCooperativeVectorMatrixLayoutRowMajorNV = 0,
1534+
SpvCooperativeVectorMatrixLayoutColumnMajorNV = 1,
1535+
SpvCooperativeVectorMatrixLayoutInferencingOptimalNV = 2,
1536+
SpvCooperativeVectorMatrixLayoutTrainingOptimalNV = 3,
1537+
SpvCooperativeVectorMatrixLayoutMax = 0x7fffffff,
1538+
} SpvCooperativeVectorMatrixLayout;
1539+
1540+
typedef enum SpvComponentType_ {
1541+
SpvComponentTypeFloat16NV = 0,
1542+
SpvComponentTypeFloat32NV = 1,
1543+
SpvComponentTypeFloat64NV = 2,
1544+
SpvComponentTypeSignedInt8NV = 3,
1545+
SpvComponentTypeSignedInt16NV = 4,
1546+
SpvComponentTypeSignedInt32NV = 5,
1547+
SpvComponentTypeSignedInt64NV = 6,
1548+
SpvComponentTypeUnsignedInt8NV = 7,
1549+
SpvComponentTypeUnsignedInt16NV = 8,
1550+
SpvComponentTypeUnsignedInt32NV = 9,
1551+
SpvComponentTypeUnsignedInt64NV = 10,
1552+
SpvComponentTypeSignedInt8PackedNV = 1000491000,
1553+
SpvComponentTypeUnsignedInt8PackedNV = 1000491001,
1554+
SpvComponentTypeFloatE4M3NV = 1000491002,
1555+
SpvComponentTypeFloatE5M2NV = 1000491003,
1556+
SpvComponentTypeMax = 0x7fffffff,
1557+
} SpvComponentType;
1558+
15321559
typedef enum SpvOp_ {
15331560
SpvOpNop = 0,
15341561
SpvOpUndef = 1,
@@ -4192,6 +4219,37 @@ inline const char* SpvFPEncodingToString(SpvFPEncoding value) {
41924219
}
41934220
}
41944221

4222+
inline const char* SpvCooperativeVectorMatrixLayoutToString(SpvCooperativeVectorMatrixLayout value) {
4223+
switch (value) {
4224+
case SpvCooperativeVectorMatrixLayoutRowMajorNV: return "RowMajorNV";
4225+
case SpvCooperativeVectorMatrixLayoutColumnMajorNV: return "ColumnMajorNV";
4226+
case SpvCooperativeVectorMatrixLayoutInferencingOptimalNV: return "InferencingOptimalNV";
4227+
case SpvCooperativeVectorMatrixLayoutTrainingOptimalNV: return "TrainingOptimalNV";
4228+
default: return "Unknown";
4229+
}
4230+
}
4231+
4232+
inline const char* SpvComponentTypeToString(SpvComponentType value) {
4233+
switch (value) {
4234+
case SpvComponentTypeFloat16NV: return "Float16NV";
4235+
case SpvComponentTypeFloat32NV: return "Float32NV";
4236+
case SpvComponentTypeFloat64NV: return "Float64NV";
4237+
case SpvComponentTypeSignedInt8NV: return "SignedInt8NV";
4238+
case SpvComponentTypeSignedInt16NV: return "SignedInt16NV";
4239+
case SpvComponentTypeSignedInt32NV: return "SignedInt32NV";
4240+
case SpvComponentTypeSignedInt64NV: return "SignedInt64NV";
4241+
case SpvComponentTypeUnsignedInt8NV: return "UnsignedInt8NV";
4242+
case SpvComponentTypeUnsignedInt16NV: return "UnsignedInt16NV";
4243+
case SpvComponentTypeUnsignedInt32NV: return "UnsignedInt32NV";
4244+
case SpvComponentTypeUnsignedInt64NV: return "UnsignedInt64NV";
4245+
case SpvComponentTypeSignedInt8PackedNV: return "SignedInt8PackedNV";
4246+
case SpvComponentTypeUnsignedInt8PackedNV: return "UnsignedInt8PackedNV";
4247+
case SpvComponentTypeFloatE4M3NV: return "FloatE4M3NV";
4248+
case SpvComponentTypeFloatE5M2NV: return "FloatE5M2NV";
4249+
default: return "Unknown";
4250+
}
4251+
}
4252+
41954253
inline const char* SpvOpToString(SpvOp value) {
41964254
switch (value) {
41974255
case SpvOpNop: return "OpNop";

include/spirv/unified1/spirv.hpp

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,6 +1525,33 @@ enum FPEncoding {
15251525
FPEncodingMax = 0x7fffffff,
15261526
};
15271527

1528+
enum CooperativeVectorMatrixLayout {
1529+
CooperativeVectorMatrixLayoutRowMajorNV = 0,
1530+
CooperativeVectorMatrixLayoutColumnMajorNV = 1,
1531+
CooperativeVectorMatrixLayoutInferencingOptimalNV = 2,
1532+
CooperativeVectorMatrixLayoutTrainingOptimalNV = 3,
1533+
CooperativeVectorMatrixLayoutMax = 0x7fffffff,
1534+
};
1535+
1536+
enum ComponentType {
1537+
ComponentTypeFloat16NV = 0,
1538+
ComponentTypeFloat32NV = 1,
1539+
ComponentTypeFloat64NV = 2,
1540+
ComponentTypeSignedInt8NV = 3,
1541+
ComponentTypeSignedInt16NV = 4,
1542+
ComponentTypeSignedInt32NV = 5,
1543+
ComponentTypeSignedInt64NV = 6,
1544+
ComponentTypeUnsignedInt8NV = 7,
1545+
ComponentTypeUnsignedInt16NV = 8,
1546+
ComponentTypeUnsignedInt32NV = 9,
1547+
ComponentTypeUnsignedInt64NV = 10,
1548+
ComponentTypeSignedInt8PackedNV = 1000491000,
1549+
ComponentTypeUnsignedInt8PackedNV = 1000491001,
1550+
ComponentTypeFloatE4M3NV = 1000491002,
1551+
ComponentTypeFloatE5M2NV = 1000491003,
1552+
ComponentTypeMax = 0x7fffffff,
1553+
};
1554+
15281555
enum Op {
15291556
OpNop = 0,
15301557
OpUndef = 1,
@@ -4188,6 +4215,37 @@ inline const char* FPEncodingToString(FPEncoding value) {
41884215
}
41894216
}
41904217

4218+
inline const char* CooperativeVectorMatrixLayoutToString(CooperativeVectorMatrixLayout value) {
4219+
switch (value) {
4220+
case CooperativeVectorMatrixLayoutRowMajorNV: return "RowMajorNV";
4221+
case CooperativeVectorMatrixLayoutColumnMajorNV: return "ColumnMajorNV";
4222+
case CooperativeVectorMatrixLayoutInferencingOptimalNV: return "InferencingOptimalNV";
4223+
case CooperativeVectorMatrixLayoutTrainingOptimalNV: return "TrainingOptimalNV";
4224+
default: return "Unknown";
4225+
}
4226+
}
4227+
4228+
inline const char* ComponentTypeToString(ComponentType value) {
4229+
switch (value) {
4230+
case ComponentTypeFloat16NV: return "Float16NV";
4231+
case ComponentTypeFloat32NV: return "Float32NV";
4232+
case ComponentTypeFloat64NV: return "Float64NV";
4233+
case ComponentTypeSignedInt8NV: return "SignedInt8NV";
4234+
case ComponentTypeSignedInt16NV: return "SignedInt16NV";
4235+
case ComponentTypeSignedInt32NV: return "SignedInt32NV";
4236+
case ComponentTypeSignedInt64NV: return "SignedInt64NV";
4237+
case ComponentTypeUnsignedInt8NV: return "UnsignedInt8NV";
4238+
case ComponentTypeUnsignedInt16NV: return "UnsignedInt16NV";
4239+
case ComponentTypeUnsignedInt32NV: return "UnsignedInt32NV";
4240+
case ComponentTypeUnsignedInt64NV: return "UnsignedInt64NV";
4241+
case ComponentTypeSignedInt8PackedNV: return "SignedInt8PackedNV";
4242+
case ComponentTypeUnsignedInt8PackedNV: return "UnsignedInt8PackedNV";
4243+
case ComponentTypeFloatE4M3NV: return "FloatE4M3NV";
4244+
case ComponentTypeFloatE5M2NV: return "FloatE5M2NV";
4245+
default: return "Unknown";
4246+
}
4247+
}
4248+
41914249
inline const char* OpToString(Op value) {
41924250
switch (value) {
41934251
case OpNop: return "OpNop";

include/spirv/unified1/spirv.hpp11

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,6 +1525,33 @@ enum class FPEncoding : unsigned {
15251525
Max = 0x7fffffff,
15261526
};
15271527

1528+
enum class CooperativeVectorMatrixLayout : unsigned {
1529+
RowMajorNV = 0,
1530+
ColumnMajorNV = 1,
1531+
InferencingOptimalNV = 2,
1532+
TrainingOptimalNV = 3,
1533+
Max = 0x7fffffff,
1534+
};
1535+
1536+
enum class ComponentType : unsigned {
1537+
Float16NV = 0,
1538+
Float32NV = 1,
1539+
Float64NV = 2,
1540+
SignedInt8NV = 3,
1541+
SignedInt16NV = 4,
1542+
SignedInt32NV = 5,
1543+
SignedInt64NV = 6,
1544+
UnsignedInt8NV = 7,
1545+
UnsignedInt16NV = 8,
1546+
UnsignedInt32NV = 9,
1547+
UnsignedInt64NV = 10,
1548+
SignedInt8PackedNV = 1000491000,
1549+
UnsignedInt8PackedNV = 1000491001,
1550+
FloatE4M3NV = 1000491002,
1551+
FloatE5M2NV = 1000491003,
1552+
Max = 0x7fffffff,
1553+
};
1554+
15281555
enum class Op : unsigned {
15291556
OpNop = 0,
15301557
OpUndef = 1,
@@ -4188,6 +4215,37 @@ inline const char* FPEncodingToString(FPEncoding value) {
41884215
}
41894216
}
41904217

4218+
inline const char* CooperativeVectorMatrixLayoutToString(CooperativeVectorMatrixLayout value) {
4219+
switch (value) {
4220+
case CooperativeVectorMatrixLayout::RowMajorNV: return "RowMajorNV";
4221+
case CooperativeVectorMatrixLayout::ColumnMajorNV: return "ColumnMajorNV";
4222+
case CooperativeVectorMatrixLayout::InferencingOptimalNV: return "InferencingOptimalNV";
4223+
case CooperativeVectorMatrixLayout::TrainingOptimalNV: return "TrainingOptimalNV";
4224+
default: return "Unknown";
4225+
}
4226+
}
4227+
4228+
inline const char* ComponentTypeToString(ComponentType value) {
4229+
switch (value) {
4230+
case ComponentType::Float16NV: return "Float16NV";
4231+
case ComponentType::Float32NV: return "Float32NV";
4232+
case ComponentType::Float64NV: return "Float64NV";
4233+
case ComponentType::SignedInt8NV: return "SignedInt8NV";
4234+
case ComponentType::SignedInt16NV: return "SignedInt16NV";
4235+
case ComponentType::SignedInt32NV: return "SignedInt32NV";
4236+
case ComponentType::SignedInt64NV: return "SignedInt64NV";
4237+
case ComponentType::UnsignedInt8NV: return "UnsignedInt8NV";
4238+
case ComponentType::UnsignedInt16NV: return "UnsignedInt16NV";
4239+
case ComponentType::UnsignedInt32NV: return "UnsignedInt32NV";
4240+
case ComponentType::UnsignedInt64NV: return "UnsignedInt64NV";
4241+
case ComponentType::SignedInt8PackedNV: return "SignedInt8PackedNV";
4242+
case ComponentType::UnsignedInt8PackedNV: return "UnsignedInt8PackedNV";
4243+
case ComponentType::FloatE4M3NV: return "FloatE4M3NV";
4244+
case ComponentType::FloatE5M2NV: return "FloatE5M2NV";
4245+
default: return "Unknown";
4246+
}
4247+
}
4248+
41914249
inline const char* OpToString(Op value) {
41924250
switch (value) {
41934251
case Op::OpNop: return "OpNop";

include/spirv/unified1/spirv.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,39 @@
15031503
{
15041504
}
15051505
},
1506+
{
1507+
"Name": "CooperativeVectorMatrixLayout",
1508+
"Type": "Value",
1509+
"Values":
1510+
{
1511+
"RowMajorNV": 0,
1512+
"ColumnMajorNV": 1,
1513+
"InferencingOptimalNV": 2,
1514+
"TrainingOptimalNV": 3
1515+
}
1516+
},
1517+
{
1518+
"Name": "ComponentType",
1519+
"Type": "Value",
1520+
"Values":
1521+
{
1522+
"Float16NV": 0,
1523+
"Float32NV": 1,
1524+
"Float64NV": 2,
1525+
"SignedInt8NV": 3,
1526+
"SignedInt16NV": 4,
1527+
"SignedInt32NV": 5,
1528+
"SignedInt64NV": 6,
1529+
"UnsignedInt8NV": 7,
1530+
"UnsignedInt16NV": 8,
1531+
"UnsignedInt32NV": 9,
1532+
"UnsignedInt64NV": 10,
1533+
"SignedInt8PackedNV": 1000491000,
1534+
"UnsignedInt8PackedNV": 1000491001,
1535+
"FloatE4M3NV": 1000491002,
1536+
"FloatE5M2NV": 1000491003
1537+
}
1538+
},
15061539
{
15071540
"Name": "Op",
15081541
"Type": "Value",

include/spirv/unified1/spirv.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,33 @@ spv = {
15161516
Max = 0x7fffffff,
15171517
},
15181518

1519+
CooperativeVectorMatrixLayout = {
1520+
RowMajorNV = 0,
1521+
ColumnMajorNV = 1,
1522+
InferencingOptimalNV = 2,
1523+
TrainingOptimalNV = 3,
1524+
Max = 0x7fffffff,
1525+
},
1526+
1527+
ComponentType = {
1528+
Float16NV = 0,
1529+
Float32NV = 1,
1530+
Float64NV = 2,
1531+
SignedInt8NV = 3,
1532+
SignedInt16NV = 4,
1533+
SignedInt32NV = 5,
1534+
SignedInt64NV = 6,
1535+
UnsignedInt8NV = 7,
1536+
UnsignedInt16NV = 8,
1537+
UnsignedInt32NV = 9,
1538+
UnsignedInt64NV = 10,
1539+
SignedInt8PackedNV = 1000491000,
1540+
UnsignedInt8PackedNV = 1000491001,
1541+
FloatE4M3NV = 1000491002,
1542+
FloatE5M2NV = 1000491003,
1543+
Max = 0x7fffffff,
1544+
},
1545+
15191546
Op = {
15201547
OpNop = 0,
15211548
OpUndef = 1,

include/spirv/unified1/spirv.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,31 @@
14621462
'FPEncoding' : {
14631463
},
14641464

1465+
'CooperativeVectorMatrixLayout' : {
1466+
'RowMajorNV' : 0,
1467+
'ColumnMajorNV' : 1,
1468+
'InferencingOptimalNV' : 2,
1469+
'TrainingOptimalNV' : 3,
1470+
},
1471+
1472+
'ComponentType' : {
1473+
'Float16NV' : 0,
1474+
'Float32NV' : 1,
1475+
'Float64NV' : 2,
1476+
'SignedInt8NV' : 3,
1477+
'SignedInt16NV' : 4,
1478+
'SignedInt32NV' : 5,
1479+
'SignedInt64NV' : 6,
1480+
'UnsignedInt8NV' : 7,
1481+
'UnsignedInt16NV' : 8,
1482+
'UnsignedInt32NV' : 9,
1483+
'UnsignedInt64NV' : 10,
1484+
'SignedInt8PackedNV' : 1000491000,
1485+
'UnsignedInt8PackedNV' : 1000491001,
1486+
'FloatE4M3NV' : 1000491002,
1487+
'FloatE5M2NV' : 1000491003,
1488+
},
1489+
14651490
'Op' : {
14661491
'OpNop' : 0,
14671492
'OpUndef' : 1,

0 commit comments

Comments
 (0)