Skip to content

Commit

Permalink
Merge branch 'mlperf-inference' into mixtral+gha+selfhosted
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh authored Oct 4, 2024
2 parents f983570 + 386e2fa commit d8986bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions script/push-mlperf-inference-results-to-github/run.bat
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
@echo off

REM Check if CM_GIT_CHECKOUT_PATH is set
if not defined CM_GIT_CHECKOUT_PATH (
echo "Error: CM_GIT_CHECKOUT_PATH is not set."
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
)

cd "%CM_GIT_CHECKOUT_PATH%"
cd "%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_CHECKOUT_PATH%" /MIR
robocopy "%CM_MLPERF_INFERENCE_SUBMISSION_DIR%" "%CM_GIT_REPO_CHECKOUT_PATH%" /MIR
git add *
)

Expand Down
10 changes: 5 additions & 5 deletions script/push-mlperf-inference-results-to-github/run.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash

# Check if CM_GIT_CHECKOUT_PATH is set
if [ -z "${CM_GIT_CHECKOUT_PATH}" ]; then
echo "Error: CM_GIT_CHECKOUT_PATH is not set."
# Check if CM_GIT_REPO_CHECKOUT_PATH is set
if [ -z "${CM_GIT_REPO_CHECKOUT_PATH}" ]; then
echo "Error: CM_GIT_REPO_CHECKOUT_PATH is not set."
exit 1
fi

cd "${CM_GIT_CHECKOUT_PATH}"
cd "${CM_GIT_REPO_CHECKOUT_PATH}"
git pull
git add *
if [[ -n ${CM_MLPERF_INFERENCE_SUBMISSION_DIR} ]]; then
rsync -avz "${CM_MLPERF_INFERENCE_SUBMISSION_DIR}/" "${CM_GIT_CHECKOUT_PATH}/"
rsync -avz "${CM_MLPERF_INFERENCE_SUBMISSION_DIR}/" "${CM_GIT_REPO_CHECKOUT_PATH}/"
git add *
fi
test $? -eq 0 || exit $?
Expand Down

0 comments on commit d8986bd

Please sign in to comment.