dace icon indicating copy to clipboard operation
dace copied to clipboard

Codegen: Generates self-assignments in/around parallel maps

Open phschaad opened this issue 4 years ago • 0 comments

Description Generated code contains self-assignments of variables (e.g. unsigned int fsz0 = fsz0;) in and around parallel maps.

Steps to reproduce:

  1. Run the BFS sample (python samples/graph/bfs_bsp.py)
  2. Computes the wrong output -> high error/diff in most cases
  3. Generated code in .daceche/bfs_bsp/src/cpu/bfs_bsp.cpp contains self assignments.

Expected behavior: Sample runs with an error/diff of 0.0.

Screenshots of self assignments in generated code: Screenshot 2021-01-21 145517

Environment:

  • OS: Windows 10 with WSL2 (Ubuntu20.04)

phschaad avatar Jan 21 '21 13:01 phschaad