Skip to content

Commit

Permalink
Fix mlperf inference docker run on Windows (#188)
Browse files Browse the repository at this point in the history
* Fix docker run on windows, install-pip-package-for-mlc
  • Loading branch information
arjunsuresh authored Feb 5, 2025
1 parent 0f838b3 commit 39aff4a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion script/app-mlperf-inference/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ deps:
- 'yes'
- tags: get,mlperf,inference,utils

- tags: install,pip-package,for-cmind-python,_package.pandas
- tags: install,pip-package,for-mlc-python,_package.pandas
enable_if_env:
MLC_PROFILE_NVIDIA_POWER:
- on
Expand Down
2 changes: 1 addition & 1 deletion script/generate-mlperf-inference-submission/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deps:
- inference-src
tags: mlcommons,inference,src
- tags: get,sut,system-description
- tags: install,pip-package,for-cmind-python,_package.tabulate
- tags: install,pip-package,for-mlc-python,_package.tabulate
- tags: get,mlperf,inference,utils
- names:
- get-mlperf-results-dir
Expand Down
1 change: 0 additions & 1 deletion script/install-pip-package-for-cmind-python/README.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
alias: install-pip-package-for-cmind-python
alias: install-pip-package-for-mlc-python
automation_alias: script
automation_uid: 5b4e0237da074764
cache: true
Expand All @@ -7,8 +7,8 @@ tags:
- pip
- package
- pip-package
- for-cmind-python
- for.cmind-python
- for-mlc-python
- for.mlc-python
uid: b16ed087abab459c

variations:
Expand Down
3 changes: 2 additions & 1 deletion script/run-docker-container/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def postprocess(i):
for mounts in env['MLC_DOCKER_VOLUME_MOUNTS']:
mount_cmds.append(mounts)

if env.get('MLC_DOCKER_PASS_USER_GROUP', '') != '':
if env.get('MLC_DOCKER_PASS_USER_GROUP',
'') != '' and os_info['platform'] != 'windows':
run_opts += " --group-add $(id -g $USER) "

if env.get('MLC_DOCKER_ADD_DEVICE', '') != '':
Expand Down
2 changes: 1 addition & 1 deletion script/run-mlperf-automotive-app/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ deps:
MLC_MLPERF_USE_DOCKER: [ off ]
skip_if_env:
OUTPUT_BASE_DIR: [ on ]
- tags: install,pip-package,for-cmind-python,_package.tabulate
- tags: install,pip-package,for-mlc-python,_package.tabulate
- tags: get,mlperf,inference,utils
skip_if_env:
MLC_MLPERF_USE_DOCKER: [ on ]
Expand Down
4 changes: 1 addition & 3 deletions script/run-mlperf-inference-app/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,9 @@ deps:
- tags: get,mlperf,inference,results,dir
names:
- get-mlperf-inference-results-dir
enable_if_env:
MLC_MLPERF_USE_DOCKER: [ off ]
skip_if_env:
OUTPUT_BASE_DIR: [ on ]
- tags: install,pip-package,for-cmind-python,_package.tabulate
- tags: install,pip-package,for-mlc-python,_package.tabulate
- tags: get,mlperf,inference,utils

#We use this script as a command generator to run docker via app-mlperf-inference script
Expand Down

0 comments on commit 39aff4a

Please sign in to comment.