Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions scripts/run_bench_and_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,23 @@ else
python scripts/upload_scribe.py --pytest_bench_json ${BENCHMARK_ABS_FILENAME} --torchbench_score ${TORCHBENCH_SCORE}
fi


git clone https://github.com/wconstab/pytorch_benchmark_data
pushd pytorch_benchmark_data
git config --global user.name "pytorchbot"
git config --global --unset url.ssh://git@github.com.insteadof || true

# Store the files with respect to the repo that their hash refers to
# separate master and pull_requests just for conveneince in the UI
if [ "$CIRCLE_BRANCH" = "master" ]
then
git clone https://github.com/wconstab/pytorch_benchmark_data
pushd pytorch_benchmark_data
git config --global user.name "pytorchbot"
git config --global --unset url.ssh://git@github.com.insteadof || true
SUBDIR="${CIRCLE_PROJECT_REPONAME}/master"
else
SUBDIR="${CIRCLE_PROJECT_REPONAME}/pull_requests"
fi
mkdir -p $SUBDIR/
cp ${BENCHMARK_ABS_FILENAME} $SUBDIR/
git add ${SUBDIR}/${BENCHMARK_FILENAME}
if [ "$CIRCLE_BRANCH" = "master" ]
then
mkdir -p $SUBDIR/
cp ${BENCHMARK_ABS_FILENAME} $SUBDIR/
git add ${SUBDIR}/${BENCHMARK_FILENAME}
ln -s -f ${SUBDIR}/${BENCHMARK_FILENAME} ${SUBDIR}/latest
echo ${BENCHMARK_FILENAME} >> ${SUBDIR}/history
git add ${SUBDIR}/latest ${SUBDIR}/history
git commit -m"Add ${BENCHMARK_FILENAME} - to reproduce results, see pytorch and machine versions in .json"
git push origin master
popd
fi
git commit -m"Add ${BENCHMARK_FILENAME} - to reproduce results, see pytorch and machine versions in .json"
git push origin master
popd