Open isuruf opened 1 year ago
I did not look closely at the provided kernel, but that can happen in the following case:
import loopy as lp
knl = lp.make_kernel(
"{[i, j]: 0<=i,j<10}",
"""
for i
<> tmp = 10
for j
out1[i, j] = i*j*tmp
out2[i, j] = (i+j)*tmp
end
end
""")
lp.generate_code_v2(knl) # generates code
knl = lp.duplicate_inames(knl, "i", within="writes:out1")
lp.generate_code_v2(knl) # FAILS due to unschedulable loop nesting
I would not consider the above behavior a loopy bug as it simply did what the user demanded.
Agree with @kaushikcfd. Good to close?
I'm not sure why it becomes unschedulable.