-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from weiya711/master_refactor_scripts
Master refactor scripts
- Loading branch information
Showing
80 changed files
with
809 additions
and
1,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,6 @@ PyYAML==6.0 | |
requests==2.28.2 | ||
scipy==1.10.0 | ||
six==1.16.0 | ||
sparse==0.13.0 | ||
tomli==2.0.1 | ||
tqdm==4.64.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
---------------------------------- | ||
| File Name | Usage | Description | | ||
----------------------------------- | ||
| | ||
# SAM Scripts | ||
|
||
| Folder Name | Description | | ||
| ------------ | ----------------------- | | ||
| `artifact/` | Scripts used solely for The Sparse Abstract Machine ASPLOS 2023 AE | | ||
| `formatting/` | Scripts used to format tensors from .mtx or .tns to other compressed formats | | ||
| `gen_sam_apps/` | Scripts used to generate SAM apps from the compiler | | ||
| `get_data/` | Scripts used to download and unpack datasets | | ||
| `logs/` | Saved log files | | ||
| `run_cpu/` | Scripts used to run the CPU baseline code | | ||
| `run_onyx/` | Scripts used to run Onyx simulations | | ||
| `run_sam_sim/` | Scripts used to run SAM simulations via Pytest | | ||
| `stats/` | Scripts used to compute statistics on data (for DSE/development) | | ||
| `tensor_names` | Scripts and files that have all the dataset tensor names | | ||
| `tiling/` | Scripts used to generate, run, and check tiled simulations | | ||
| `util/` | Utility code used by scripts under the `scripts/` directory | | ||
|
||
|
||
Each folder has a README with a description of the corresponding scripts in | ||
that directory. Also For each individual script, see the first line comment for how | ||
to run the command. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Artifact Scripts | ||
|
||
The `scripts/artifact/` folder contains scripts used only for artifact evaluation of "The Sparse Abstract Machine" ASPLOS 2023. | ||
|
||
1. `artifact_docker_copy.py` - Python script that copies figures from docker to local machine for viewing. | ||
2. `collect_node_counts.py` - Python script that counts and prints the number of each SAM primitive for Table 1 in "The Sparse Abstract Machine". | ||
3. `plot_memory_model.py` - Python script that plots the memory model graph (Figure | ||
4. `plot_stream_overhead.py` - | ||
5. `stream_overhead.sh` - | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Formatting | ||
|
||
The `scripts/formatting/` folder contains scripts used to format the datasets from mtx/tns files to the seg/crd/vals arrays for CSF. The CSF files are expected by both the Onyx AHA flow and the SAM simulator. | ||
|
||
1. `datastructure_suitesparse.py` - Python script used by | ||
`generate_suitesparse_formats.sh` to format from mtx to CSF files. | ||
2. `datastructure_tns.py` - Python script used by | ||
`generate_frostt_formats.sh` to format from tns to CSF files. | ||
3. `download_unpack_format_suitesparse.sh` - Script that downloads, unpacks, | ||
and formats a list of suitesparse matrices. To download and unpack it | ||
calls scripts in `scripts/get_data`. | ||
4. `generate_frostt_formats.sh` - Formats all FROSTT datasets. FIXME: This file needs fixing as it uses the old CSF formatting (e.g. `matrix_name/B_seg0`) instead of the new one (e.g. `app/tensor_B_mode_0_seg`) | ||
5. `generate_suitesparse_formats.sh` - Formats all SuiteSparse datasets | ||
|
||
Formatted CSF files should reside in `$SUITESPARSE_FORMATTED_PATH` for SuiteSparse matrices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
scripts/datastructure_tns.py → scripts/formatting/datastructure_tns.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.