simit icon indicating copy to clipboard operation
simit copied to clipboard

Stencil assembly fails when stencil inputs are assigned to variable

Open fredrikbk opened this issue 8 years ago • 3 comments

The following code causes a stencil assembly to fail:

  self = l[0,0;0,1].a + l[0,0; 0,-1].a +
         l[0,0;1,0].a + l[0,0;-1, 0].a;
  vnMat(orig,orig) = self;

The error message is:

Internal error at /Users/kjoelsta/Dropbox/projects/simit/simit/src/stencil_norm.cpp:31 in visit
 Condition failed: rowNormOff.size() != 0
 Set read visit not paired to output write

This is exposed by the (disabled) test issue.44 in 14e2067e253ae04a1b40eeb35dac8848174d157b.

fredrikbk avatar Aug 24 '16 16:08 fredrikbk

@gkanwar do you have time to look at this?

fredrikbk avatar Aug 24 '16 16:08 fredrikbk

Hmm, this should have been handled by definition inlining. I can look into it this coming week.

gkanwar avatar Aug 25 '16 23:08 gkanwar

I may have accidentally deleted this code when I was fixing a problem with inlining (sorry). I can't find the commit though. Was it in inline.cpp?

fredrikbk avatar Aug 25 '16 23:08 fredrikbk