Skip to content

[BUG] DSLRuntimeError appears when adding unrelated code #2676

@reubenconducts

Description

@reubenconducts

Which component has the problem?

CuTe DSL

Bug Report

Describe the bug
The following simple example runs as expected:

@cute.jit
def print_me(m : Int32):
    x = Int32(m)
    print(x)
    cute.printf((x,))
    # a = cute.make_layout(m) 
print_me(2)

However, if we uncomment a = cute.make_layout(m), we get a DSLRuntimeError: Unable to convert dynamic Boolean value to bool at compile time. Considering that line should have no impact on the function, this is erroneous. If we replace x = Int32(m) with x = m, though, it once again runs as expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions