-
Notifications
You must be signed in to change notification settings - Fork 12
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 #345 from GATEOverflow/mlperf-inference
Merge from go
- Loading branch information
Showing
15 changed files
with
134 additions
and
40 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 |
---|---|---|
|
@@ -42,6 +42,7 @@ jobs: | |
- name: Test MLPerf Inference ResNet50 (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
git config --system core.longpaths true | ||
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --hw_name=gh_windows --model=resnet50 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --target_qps=1 -v --quiet | ||
- name: Test MLPerf Inference ResNet50 (Linux/macOS) | ||
if: matrix.os != 'windows-latest' | ||
|
@@ -53,12 +54,12 @@ jobs: | |
USER: "GitHub Action" | ||
EMAIL: "[email protected]" | ||
run: | | ||
git config --global user.name "$USER" | ||
git config --global user.email "$EMAIL" | ||
git config --global user.name "${{ env.USER }}" | ||
git config --global user.email "${{ env.EMAIL }}" | ||
git config --global credential.https://github.com.helper "" | ||
git config --global credential.https://github.com.helper "!gh auth git-credential" | ||
git config --global credential.https://gist.github.com.helper "" | ||
git config --global credential.https://gist.github.com.helper "!gh auth git-credential" | ||
cm run script --tags=auth,gh,cli --with_token="${{ secrets.TEST_RESULTS_GITHUB_TOKEN }}" | ||
cm run script --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/gateoverflow/mlperf_inference_test_submissions_v5.0 --repo_branch=main --commit_message="Results from R50 GH action" --quiet | ||
cm run script --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/gateoverflow/mlperf_inference_test_submissions_v5.0 --repo_branch=main --commit_message="Results from R50 GH action on ${{ matrix.os }}" --quiet |
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
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
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 @@ | ||
choco install gh |
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,34 @@ | ||
@echo off | ||
|
||
REM Check if CM_GIT_REPO_CHECKOUT_PATH is set | ||
if not defined CM_GIT_REPO_CHECKOUT_PATH ( | ||
echo "Error: CM_GIT_REPO_CHECKOUT_PATH is not set." | ||
exit /b 1 | ||
) | ||
|
||
echo %cd% | ||
echo "Doing cd" | ||
REM Change directory | ||
cd "%CM_GIT_REPO_CHECKOUT_PATH%" || ( | ||
echo "Error: Failed to change directory to %CM_GIT_REPO_CHECKOUT_PATH%" | ||
exit /b 1 | ||
) | ||
echo %cd% | ||
echo "%CM_GIT_REPO_CHECKOUT_PATH%" | ||
git pull | ||
git add * | ||
|
||
REM Check if the CM_MLPERF_INFERENCE_SUBMISSION_DIR variable is set | ||
if defined CM_MLPERF_INFERENCE_SUBMISSION_DIR ( | ||
robocopy "%CM_MLPERF_INFERENCE_SUBMISSION_DIR%" "%CM_GIT_REPO_CHECKOUT_PATH%" /MIR | ||
git add * | ||
) | ||
|
||
REM Check if the previous command was successful | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
git commit -a -m "%CM_MLPERF_RESULTS_REPO_COMMIT_MESSAGE%" | ||
REM git push | ||
|
||
REM Check if the previous command was successful | ||
if %errorlevel% neq 0 exit /b %errorlevel% |
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