Skip to content

printing hex value prints random values #156

Open
@jcasas00

Description

@jcasas00
    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).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions