Skip to content

Commit

Permalink
Merge branch 'main' into ruijie/update_ut_log
Browse files Browse the repository at this point in the history
  • Loading branch information
RUIJIEZHONG66166 authored Aug 13, 2024
2 parents f2aeaec + dd1e6dd commit 96dec25
Show file tree
Hide file tree
Showing 6 changed files with 719 additions and 912 deletions.
63 changes: 9 additions & 54 deletions .github/actions/inductor-xpu-e2e-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ runs:
source .github/scripts/env.sh
cp .github/scripts/inductor_xpu_test.sh ../pytorch
cd ../pytorch
# check param
function contains() {
contains_status="echo 'Start $2 ...'"
Expand Down Expand Up @@ -136,8 +137,7 @@ runs:
done
done
- name: Summary E2E Accuracy Test (${{ inputs.suite }} ${{ inputs.dt }} ${{ inputs.mode }} ${{ inputs.scenario }})
if: contains(inputs.scenario, 'accuracy')
- name: Summary E2E Test (${{ inputs.suite }} ${{ inputs.dt }} ${{ inputs.mode }} ${{ inputs.scenario }})
shell: bash
env:
HUGGING_FACE_HUB_TOKEN: ${{ inputs.hf_token }}
Expand All @@ -150,60 +150,15 @@ runs:
cat $var >> inductor_log/summary_accuracy.csv
done
# check param
function contains() {
contains_status="echo 'Start $2 ...'"
{
[[ $1 =~ (^|,)$2($|,) ]]
} || {
echo "[Warning] $2 is not suppotted type! Skipped!"
contains_status="continue"
}
}
#Accuracy summary
source activate e2e_ci
cd ${{ github.workspace }}
cp .github/scripts/inductor_accuracy_summary.py ../pytorch
cp .github/scripts/inductor_summary.py ../pytorch
cd ../pytorch
pip install styleFrame scipy pandas
set -xe
for suite in $(echo ${{ inputs.suite }} |sed 's/,/ /g')
do
contains "huggingface,timm_models,torchbench" $suite
$contains_status
dt=$(echo ${{ inputs.dt }} |sed 's/,/ /g')
mode=$(echo ${{ inputs.mode }} |sed 's/,/ /g')
python inductor_accuracy_summary.py -p ${dt} -s ${suite} -m ${mode}
done
- name: Summary E2E Performance Test (${{ inputs.suite }} ${{ inputs.dt }} ${{ inputs.mode }} ${{ inputs.scenario }})
if: contains(inputs.scenario, 'performance')
shell: bash
env:
HUGGING_FACE_HUB_TOKEN: ${{ inputs.hf_token }}
run: |
# check param
function contains() {
contains_status="echo 'Start $2 ...'"
{
[[ $1 =~ (^|,)$2($|,) ]]
} || {
echo "[Warning] $2 is not suppotted type! Skipped!"
contains_status="continue"
}
}
source activate e2e_ci
cp .github/scripts/inductor_perf_summary.py ../pytorch
cd ../pytorch
source /opt/intel/oneapi/pytorch-gpu-dev-0.5/oneapi-vars.sh
pip install styleFrame scipy pandas
set -xe
for suite in $(echo ${{ inputs.suite }} |sed 's/,/ /g')
do
contains "huggingface,timm_models,torchbench" $suite
$contains_status
dt=$(echo ${{ inputs.dt }} |sed 's/,/ /g')
mode=$(echo ${{ inputs.mode }} |sed 's/,/ /g')
python inductor_perf_summary.py -p ${dt} -s ${suite} -m ${mode}
done
dt=$(echo ${{ inputs.dt }} |sed 's/,/ /g')
mode=$(echo ${{ inputs.mode }} |sed 's/,/ /g')
suite=$(echo ${{ inputs.suite }} |sed 's/,/ /g')
scenario=$(echo ${{ inputs.scenario }} |sed 's/,/ /g')
python inductor_summary.py -p ${dt} -s ${suite} -m ${mode} -sc ${scenario}
Loading

0 comments on commit 96dec25

Please sign in to comment.