intel / yask

YASK--Yet Another Stencil Kit: a domain-specific language and framework to create high-performance stencil code for implementing finite-difference methods and similar applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix bug with scratch-grids in sub-domains

chuckyount opened this issue · comments

make clean ; make -j real_bytes=8 fold=z=4 stencil=awp_elastic YK_CXXOPT='-O0' EXTRA_MACROS='CHECK' OMPFLAGS='-qopenmp-stubs'
bin/yask.sh -stencil awp_elastic -arch snb -v
...
yask_kernel.awp_elastic.snb.exe: lib/context.cpp:1036: void yask::StencilContext::update_scratch_grids(int, const yask::Indices &): Assertion `imod_flr(lofs, gp->_get_vec_lens(posn)) == 0' failed.

This happens because blocks in sub-domains are not aligned, but they must be in current impl.