Skip to content

Commit

Permalink
Fixes for nvidia-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Mar 10, 2024
1 parent 2a4e925 commit 011a923
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cm-mlops/script/build-mlperf-inference-server-nvidia/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ docker:
- tags: get,mlperf,inference,submission,dir
- tags: get,nvidia-docker
pre_run_cmds:
- cm pull repo mlcommons@ck
run_cmd_prefix: sudo apt remove -y cmake && cm pull repo mlcommons@ck
- cm pull repo
run_cmd_prefix: sudo apt remove -y cmake
mounts:
- "${{ IMAGENET_PATH }}:/data/imagenet-val"
- "${{ CM_MLPERF_INFERENCE_RESULTS_DIR }}:${{ CM_MLPERF_INFERENCE_RESULTS_DIR }}"
Expand Down
2 changes: 1 addition & 1 deletion cm-mlops/script/get-generic-python-lib/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

if [[ ${CM_GENERIC_PYTHON_PACKAGE_VARIANT} == "nvidia-apex" ]]; then
if [[ ${CM_GENERIC_PYTHON_PACKAGE_VARIANT} == "nvidia-apex-depreciated" ]]; then
cd ${CM_GIT_REPO_CHECKOUT_PATH}
cmd="${CM_PYTHON_BIN_WITH_PATH} -m pip install -v --disable-pip-version-check --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ./"
echo $cmd
Expand Down
1 change: 1 addition & 0 deletions cm-mlops/script/run-docker-container/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def postprocess(i):
run_cmds.append(post_run_cmd)

run_cmd = " && ".join(run_cmds)
run_cmd = run_cmd.replace("--docker_run_deps", "")

if mount_cmds:
for mount_cmd in mount_cmds:
Expand Down

0 comments on commit 011a923

Please sign in to comment.