spcl / dace-vscode

Rich editor for SDFGs with included profiling and debugging, static analysis, and interactive optimization.
https://marketplace.visualstudio.com/items?itemName=phschaad.sdfv
BSD 3-Clause "New" or "Revised" License
19 stars 10 forks source link

Unable to simulate cache accesses for a simple example #256

Open rohanrayan opened 7 months ago

rohanrayan commented 7 months ago

Describe the bug I have a simple function attached with a two level nested loops. I generate an SDFG of this and open it with the VS-code extension. I then click on the full SDFG and open up the "inspect memory access" tab. Here I dont see the inner loop and I am not able to simulate the access patterns.

To Reproduce Steps to reproduce the behavior:

  1. Open the attached python code file (attached as a .txt file as I am not able to upload a .py file)
  2. Run the file to generate the SDFG
  3. Open the SDFG in the VS-extension
  4. Click on the outermost SDFG
  5. Click on the "Inspect memory access(local view)" tab
  6. Set N to 20
  7. The generated view does not have the 'j' loop and it is not possible to simulate the access pattern

Expected behavior I expect to be able to visualize the memory flow and access patterns which gives me a starting point to optimize for cache access

Software Versions

Additional context Python code to reproduce the issue: dace_err.txt

Please let me know in case I am doing something wrong and how to use the VS-code extension for such cases.

Thanks in advance

phschaad commented 6 months ago

Thank you for the report! It does not appear that you are doing anything wrong, but rather that there is a bug here. This will be investigated and fixed.