Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pkg-config deps for get-generic-sys-util #464

Merged
Merged
Show file tree
Hide file tree
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
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
Loading