-
Notifications
You must be signed in to change notification settings - Fork 8
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 #18 from andrewboutros/dev-gtrieu
CI Improvements, Minor documentation changes
- Loading branch information
Showing
56 changed files
with
208 additions
and
2,019 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
TEST_ERROR=0 | ||
if [ -z $TEST ]; then | ||
./rad-sim/test/$TEST_SCRIPT || TEST_ERROR=$? | ||
else | ||
./rad-sim/test/$TEST_SCRIPT -t $TEST || TEST_ERROR=$? | ||
fi | ||
sed -i "s/\x1B\[[0-9;]\{1,\}[A-Za-z]/**/g" $GITHUB_STEP_SUMMARY | ||
exit "$TEST_ERROR" |
File renamed without changes.
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
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,48 @@ | ||
RAD-Sim Developers | ||
=================== | ||
|
||
RAD-Sim Testing Infrastructure | ||
------------------------------- | ||
|
||
Python Scripts Tests | ||
^^^^^^^^^^^^^^^^^^^^^ | ||
To run python tests, ensure the current working directory is in the ``rad-sim`` folder and run the following steps: | ||
|
||
#. ``python -m unittest discover .`` | ||
|
||
If you would like a test report XML to be generated, run the following steps: | ||
|
||
#. ``pip install -r test/requirements.txt`` | ||
#. ``python -m xmlrunner discover . --output-file test/python-test-report.xml`` | ||
|
||
MLP Tests | ||
^^^^^^^^^^ | ||
To run the MLP test, ensure the current working directory is in the ``rad-sim`` folder and run the following steps: | ||
|
||
#. ``conda activate radflow`` | ||
#. ``test/mlp_test.sh`` | ||
|
||
DLRM Tests | ||
^^^^^^^^^^ | ||
To run the DLRM test, ensure the current working directory is in the ``rad-sim`` folder and run the following steps: | ||
|
||
#. ``conda activate radflow`` | ||
#. ``test/dlrm_test.sh`` | ||
|
||
NPU Tests | ||
^^^^^^^^^^ | ||
To run the NPU test, ensure the current working directory is in the ``rad-sim`` folder and run the following steps: | ||
|
||
#. ``conda activate radflow`` | ||
#. ``test/npu_test.sh`` | ||
|
||
If you would like to run specific tests (ex. std_gemv, std_rnn, std_gru, std_lstm, std_mlp) it can be specified using the -t flag: | ||
|
||
``test/npu_test.sh -t {test}`` | ||
|
||
NPU Tests rely on a baseline file located in the ``rad-sim/example-designs/npu/scripts/perf_baseline`` directory. | ||
This file provides expected QoR and runtime values for each test case. The format of this file is ``{test} {QoR} {runtime}``. | ||
|
||
Running the NPU test produces a correctness result (PASS/FAIL), along with a performance result (PASS/FAIL). | ||
The performance result requires both the QoR value and the runtime to fall within specified thresholds from the baseline. | ||
These thresholds are defined in the ``rad-sim/example-designs/npu/scripts/perf_tests.py`` file. |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
01_gemv_512x512 3.93 | ||
02_gemv_1024x1024 10.43 | ||
03_gemv_1152x1152 11.11 | ||
04_gemv_1536x1536 15.85 | ||
05_gemv_1792x1792 17.79 | ||
06_rnn_512_8 8.00 | ||
07_rnn_1024_8 20.81 | ||
08_rnn_1152_8 22.12 | ||
09_rnn_1536_8 30.96 | ||
10_rnn_1792_8 34.37 | ||
11_gru_512_8 8.67 | ||
12_gru_1024_8 21.34 | ||
13_gru_1152_8 23.34 | ||
14_lstm_512_8 13.56 | ||
15_lstm_1024_8 30.01 | ||
16_mlp5_512 4.73 | ||
17_mlp5_1024 12.87 | ||
18_mlp3_dlrm 4.21 | ||
01_std_gemv_512x512 5.38 47.09 | ||
02_std_gemv_1024x1024 12.47 80.72 | ||
03_std_gemv_1152x1152 13.34 96.12 | ||
04_std_gemv_1536x1536 19.62 121.48 | ||
05_std_gemv_1792x1792 23.02 140.83 | ||
06_std_rnn_512_8 7.44 295.92 | ||
07_std_rnn_1024_8 17.42 550.32 | ||
08_std_rnn_1152_8 19.35 629.05 | ||
09_std_rnn_1536_8 27.75 831.69 | ||
10_std_rnn_1792_8 33.13 999.86 | ||
11_std_gru_512_8 8.6 979.34 | ||
12_std_gru_1024_8 19.71 1863.19 | ||
13_std_gru_1152_8 23.57 2042.29 | ||
14_std_lstm_512_8 10.14 827.23 | ||
15_std_lstm_1024_8 23.87 1526.99 | ||
16_std_mlp5_512 6.81 60.49 | ||
17_std_mlp5_1024 15.92 110.30 | ||
18_std_mlp3_dlrm 5.38 68.64 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
Oops, something went wrong.