Skip to content

Commit

Permalink
Merge pull request #464 from GATEOverflow/mlperf-inference
Browse files Browse the repository at this point in the history
Use pkg-config deps for get-generic-sys-util
  • Loading branch information
arjunsuresh authored Nov 3, 2024
2 parents fa46c07 + f049765 commit d1f984b
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 12 deletions.
1 change: 1 addition & 0 deletions script/app-mlperf-inference-nvidia/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ variations:
- tags: get,generic-python-lib,_onnx-graphsurgeon
- tags: get,generic-python-lib,_package.onnx
version: 1.13.1
- tags: get,generic-python-lib,_package.sympy

sdxl:
new_env_keys:
Expand Down
2 changes: 1 addition & 1 deletion script/build-docker-image/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def preprocess(i):
image_name = get_image_name(env)

if build_dockerfile:
dockerfile_path = "\${CM_DOCKERFILE_WITH_PATH}"
dockerfile_path = r"\${CM_DOCKERFILE_WITH_PATH}"

# Write .dockerignore
with open('.dockerignore', 'w') as f:
Expand Down
23 changes: 23 additions & 0 deletions script/get-generic-sys-util/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
"deps": [
{
"tags": "detect,os"
},
{
"tags": "get,generic-sys-util,_pkg-config,_detect",
"skip_if_env": {
"CM_SYS_UTIL_NAME": [
"pkg_config"
]
}
}
],
"new_env_keys": [
Expand Down Expand Up @@ -548,6 +556,21 @@
}
}
},
"pkg-config": {
"env": {
"CM_SYS_UTIL_NAME": "pkg_config",
"CM_SYS_UTIL_VERSION_RE": "\\b(\\d+\\.\\d+(?:\\.\\d+)?)\\b",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 0
},
"state": {
"pkg_config": {
"apt": "pkg-config",
"brew": "pkg-config",
"dnf": "pkg-config",
"yum": "pkg-config"
}
}
},
"psmisc": {
"env": {
"CM_SYS_UTIL_NAME": "psmisc"
Expand Down
24 changes: 14 additions & 10 deletions script/get-generic-sys-util/detect.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#!/bin/bash

if [[ -n "${CM_SYS_UTIL_VERSION_CMD}" ]]; then
if [[ "${CM_SYS_UTIL_VERSION_CMD_USE_ERROR_STREAM}" == "yes" ]]; then
# Redirect both stdout and stderr to tmp-ver.out
cmd="${CM_SYS_UTIL_VERSION_CMD} > tmp-ver.out 2>&1"
else
cmd="${CM_SYS_UTIL_VERSION_CMD} > tmp-ver.out"
fi
echo $cmd
eval $cmd
if [[ -n "${CM_SYS_UTIL_VERSION_CMD_OVERRIDE}" ]]; then
eval "${CM_SYS_UTIL_VERSION_CMD_OVERRIDE}"
test $? -eq 0 || exit $?
else
if [[ -n "${CM_SYS_UTIL_VERSION_CMD}" ]]; then
if [[ "${CM_SYS_UTIL_VERSION_CMD_USE_ERROR_STREAM}" == "yes" ]]; then
# Redirect both stdout and stderr to tmp-ver.out
cmd="${CM_SYS_UTIL_VERSION_CMD} > tmp-ver.out 2>&1"
else
cmd="${CM_SYS_UTIL_VERSION_CMD} > tmp-ver.out"
fi
echo $cmd
eval $cmd
test $? -eq 0 || exit $?
fi
fi

Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@
bert-99:
Offline:
target_qps: 8000
Server:
target_qps: 6000
bert-99.9:
Offline:
target_qps: 8000
target_qps: 3500
Server:
target_qps: 3000
3d-unet-99:
Offline:
target_qps: 8.0
Expand Down

0 comments on commit d1f984b

Please sign in to comment.