File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 7474 - name : Generate PyTorch cache key
7575 shell : bash
7676 run : |
77+ ONEAPI_LINK=$(readlink /opt/intel/oneapi || true)
7778 ONEAPI_KEY=$(sha256sum /opt/intel/installed.txt 2> /dev/null | cut -d\ -f1 || true)
78- PYTORCH_CACHE_KEY=$(echo $PYTHON_VERSION $PYTORCH_COMMIT_ID ${{ hashFiles('scripts/patch-pytorch.sh') }} ${{ inputs.mode }}$ONEAPI_KEY | sha256sum - | cut -d\ -f1)
79+ PYTORCH_CACHE_KEY=$(echo $PYTHON_VERSION $PYTORCH_COMMIT_ID ${{ hashFiles('scripts/patch-pytorch.sh') }} ${{ inputs.mode }}${ ONEAPI_KEY}${ONEAPI_LINK} | sha256sum - | cut -d\ -f1)
7980 echo "PYTORCH_CACHE_KEY=$PYTORCH_CACHE_KEY" | tee -a "$GITHUB_ENV"
8081
8182 - name : Load PyTorch from a cache
Original file line number Diff line number Diff line change 1919 - PYTORCH_LEGACY_PROFILER_USING_IPEX
2020 - ELAPSED_TIME
2121 - UPSTREAM_PYTORCH_PROFILER
22- default : PYTORCH_LEGACY_PROFILER_USING_IPEX
22+ default : UPSTREAM_PYTORCH_PROFILER
2323 run_name :
2424 description : Run name
2525 type : string
3232 description : Use Python built with pyenv
3333 type : boolean
3434 default : false
35+ oneapi_bundle :
36+ description : oneAPI bundle
37+ type : choice
38+ options :
39+ - PTDB
40+ - DLE
41+ default : DLE
3542
3643 schedule :
3744 - cron : " 5 23 * * *"
@@ -46,8 +53,8 @@ permissions: read-all
4653
4754env :
4855 PYTHON_VERSION : " 3.10"
49- BENCHMARKING_METHOD : ${{ inputs.benchmarking_method || 'PYTORCH_LEGACY_PROFILER_USING_IPEX ' }}
50- USE_IPEX : ${{ github.event_name != 'workflow_dispatch' && '1' || inputs.benchmarking_method == 'PYTORCH_LEGACY_PROFILER_USING_IPEX' && '1' || '0' }}
56+ BENCHMARKING_METHOD : ${{ inputs.benchmarking_method || 'UPSTREAM_PYTORCH_PROFILER ' }}
57+ USE_IPEX : ${{ (inputs.benchmarking_method || 'UPSTREAM_PYTORCH_PROFILER') == 'PYTORCH_LEGACY_PROFILER_USING_IPEX' && '1' || '0' }}
5158 TAG : ${{ inputs.tag || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number)) || (github.event_name == 'schedule' && 'ci') || 'test' }}
5259
5360jobs :
6673 ${{ toJSON(inputs) }}
6774 EOF
6875
76+ - name : Use DLE
77+ if : ${{ (github.oneapi_bundle || 'DLE') == 'DLE' }}
78+ shell : bash
79+ run : |
80+ if [[ -e /opt/intel/dle ]]; then
81+ sudo ln -sfT /opt/intel/dle /opt/intel/oneapi
82+ fi
83+
6984 - name : Checkout repository
7085 uses : actions/checkout@v4
7186
You can’t perform that action at this time.
0 commit comments