-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Description
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.
brandon-yujie-sun