-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improving CM automation recipes for CUDA and improving docs (#1088)
- Loading branch information
Showing
13 changed files
with
340 additions
and
128 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
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
40 changes: 40 additions & 0 deletions
40
cm-mlops/script/install-pytorch-from-src/run-intel-mlperf-inference-v3_1.sh
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,40 @@ | ||
#!/bin/bash | ||
|
||
export PATH=${CM_CONDA_BIN_PATH}:$PATH | ||
|
||
CUR_DIR=$PWD | ||
rm -rf pytorch | ||
cp -r ${CM_PYTORCH_SRC_REPO_PATH} pytorch | ||
cd pytorch | ||
rm -rf build | ||
|
||
git submodule sync | ||
git submodule update --init --recursive | ||
if [ "${?}" != "0" ]; then exit 1; fi | ||
pushd third_party/gloo | ||
wget -nc --no-check-certificate https://raw.githubusercontent.com/mlcommons/inference_results_v3.1/main/closed/Intel/code/bert-99/pytorch-cpu/patches/gloo.patch | ||
if [ "${?}" != "0" ]; then exit 1; fi | ||
git apply gloo.patch | ||
if [ "${?}" != "0" ]; then exit 1; fi | ||
popd | ||
|
||
pushd third_party/ideep/mkl-dnn | ||
wget -nc --no-check-certificate https://raw.githubusercontent.com/mlcommons/inference_results_v3.1/main/closed/Intel/code/bert-99/pytorch-cpu/patches/clang_mkl_dnn.patch | ||
if [ "${?}" != "0" ]; then exit 1; fi | ||
git apply clang_mkl_dnn.patch | ||
if [ "${?}" != "0" ]; then exit 1; fi | ||
popd | ||
|
||
wget -nc --no-check-certificate https://raw.githubusercontent.com/mlcommons/inference_results_v3.1/main/closed/Intel/code/bert-99/pytorch-cpu/patches/pytorch_official_1_12.patch | ||
if [ "${?}" != "0" ]; then exit 1; fi | ||
git apply pytorch_official_1_12.patch | ||
if [ "${?}" != "0" ]; then exit 1; fi | ||
pip install -r requirements.txt | ||
|
||
cmd="${CM_RUN_CMD}" | ||
echo ${cmd} | ||
eval ${cmd} | ||
|
||
if [ "${?}" != "0" ]; then exit 1; fi | ||
|
||
echo "******************************************************" |
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
Oops, something went wrong.