Open
Description
def kernel():
stype = hcl.Struct({"x": hcl.UInt(8), "y": hcl.UInt(8)})
xy = hcl.scalar(0x1234, "foo", dtype=stype).v
hcl.print((xy.x, xy.y), "dec: %d %d\n")
hcl.print((xy.x, xy.y), "hex: %x %x\n")
generates:
match 0: 52 18
match 0: 0 598f4740
The "hex" print actually prints random values (number changes every run).