Skip to content

Commit

Permalink
Fixes for onnxruntime install from src
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Jan 25, 2024
1 parent 591788b commit 679cff4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cm-mlops/script/install-onnxruntime-from.src/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"tags": "get,cmake",
"version_min": "3.26.0"
},
{
"tags": "get,gcc",
"version_max": "11.9.999",
"version_max_usable": "11.0"
},
{
"env": {
"CM_GIT_CHECKOUT_PATH_ENV_NAME": "CM_ONNXRUNTIME_SRC_REPO_PATH"
Expand Down Expand Up @@ -100,7 +105,7 @@
},
"tag.#": {
"ad": {
"pytorch-src-repo": {
"onnxruntime-src-repo": {
"tags": "_no-recurse-submodules,_full-history"
}
},
Expand Down
6 changes: 5 additions & 1 deletion cm-mlops/script/install-onnxruntime-from.src/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/bash

export CC=${CM_GCC_BIN_WITH_PATH}
export CXX=${CM_GCC_INSTALLED_PATH}/g++

echo "cd ${CM_RUN_DIR}"
cd ${CM_RUN_DIR}
test $? -eq 0 || exit $?
echo ${CM_RUN_CMD}
rm -rf build

echo ${CM_RUN_CMD}
eval ${CM_RUN_CMD}
test $? -eq 0 || exit $?

Expand Down

0 comments on commit 679cff4

Please sign in to comment.