Skip to content

Commit

Permalink
support data type w2 used in cutlass_library (NVIDIA#1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinchen430 authored Aug 6, 2024
1 parent 19b4c5e commit e22ba59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/cutlass_library/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class GeneratorTarget(enum.Enum):
class DataType(enum.Enum):
void = enum_auto() # primarily used to disable C tensor for epilogues
b1 = enum_auto()
u2 = enum_auto()
u4 = enum_auto()
u8 = enum_auto()
u16 = enum_auto()
Expand Down Expand Up @@ -119,6 +120,7 @@ class DataType(enum.Enum):
DataTypeNames = {
DataType.void: "void",
DataType.b1: "b1",
DataType.u2: "u2",
DataType.u4: "u4",
DataType.u8: "u8",
DataType.u16: "u16",
Expand Down Expand Up @@ -156,6 +158,7 @@ class DataType(enum.Enum):
DataTypeTag = {
DataType.void: "void",
DataType.b1: "cutlass::uint1b_t",
DataType.u2: "cutlass::uint2b_t",
DataType.u4: "cutlass::uint4b_t",
DataType.u8: "uint8_t",
DataType.u16: "uint16_t",
Expand Down Expand Up @@ -193,6 +196,7 @@ class DataType(enum.Enum):
DataTypeSize = {
DataType.void: 0,
DataType.b1: 1,
DataType.u2: 2,
DataType.u4: 4,
DataType.u8: 8,
DataType.u16: 16,
Expand Down

0 comments on commit e22ba59

Please sign in to comment.