dace
dace copied to clipboard
Codegen: Generates self-assignments in/around parallel maps
Description
Generated code contains self-assignments of variables (e.g. unsigned int fsz0 = fsz0;) in and around parallel maps.
Steps to reproduce:
- Run the BFS sample (
python samples/graph/bfs_bsp.py) - Computes the wrong output -> high error/diff in most cases
- Generated code in
.daceche/bfs_bsp/src/cpu/bfs_bsp.cppcontains self assignments.
Expected behavior:
Sample runs with an error/diff of 0.0.
Screenshots of self assignments in generated code:

Environment:
- OS: Windows 10 with WSL2 (Ubuntu20.04)