Skip to content

Commit

Permalink
July Improvements 2/2 (#180)
Browse files Browse the repository at this point in the history
Co-authored-by: Tal Ben-Nun <[email protected]>
  • Loading branch information
phschaad and tbennun authored Jul 28, 2022
1 parent eae2481 commit 61047c3
Show file tree
Hide file tree
Showing 19 changed files with 10,436 additions and 855 deletions.
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ vsc-extension-quickstart.md
**/*.map
**/*.ts
node_modules/**
scripts/**
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Change Log

## Pre-Release (1.3.1)

- Allow offline editing of SDFGs (adding / deleting elements etc.)
- Add auto-opening SDFG and instrumentation report preference to the extension
settings
- Allow exporting of SDFG transformations to JSON files
- Integrate the new local view for close-up memory reuse analysis
- Improved error reporting from the DaCe daemon
- Various bugfixes and improvements

## 1.2

### 1.2.0

- Allow loading of custom transformations
- Enable specializing SDFGs through the SDFG Analysis panel
- Make the built-in minimap toggleable
- Adopt a pre-release system
- Support workspace trust
- Various bugfixes and improvements

## 1.1

### 1.1.0
Expand Down Expand Up @@ -94,7 +115,7 @@

- Provide interactive instrumentation of SDFGs.
- Provide visualization of instrumentation reports on SDFGs.
- If a runtime report is generated, prompt the user to display it ontop of the
- If a runtime report is generated, prompt the user to display it ontop of the
currently active SDFG.
- Provide running of SDFGs.
- Run SDFGs normally, or run with profiling - this runs N times and reports
Expand Down
36 changes: 28 additions & 8 deletions backend/dace_vscode/arith_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
from dace import nodes, dtypes
import sympy

from dace_vscode.utils import get_uuid, load_sdfg_from_json
from dace_vscode.utils import (
get_uuid,
load_sdfg_from_json,
get_exception_message,
)


def symeval(val, symbols):
Expand Down Expand Up @@ -211,10 +215,26 @@ def get_arith_ops(sdfg_json):
return loaded['error']
sdfg = loaded['sdfg']

propagation.propagate_memlets_sdfg(sdfg)

arith_map = {}
create_arith_ops_map(sdfg, arith_map, {})
return {
'arithOpsMap': arith_map,
}
try:
propagation.propagate_memlets_sdfg(sdfg)
except Exception as e:
return {
'error': {
'message': 'Failed to propagate memlets through SDFG',
'details': get_exception_message(e),
},
}

try:
arith_map = {}
create_arith_ops_map(sdfg, arith_map, {})
return {
'arithOpsMap': arith_map,
}
except Exception as e:
return {
'error': {
'message': 'Failed to count arithmetic operations',
'details': get_exception_message(e),
},
}
157 changes: 0 additions & 157 deletions backend/dace_vscode/editing.py

This file was deleted.

Loading

0 comments on commit 61047c3

Please sign in to comment.