Skip to content

Commit 39aff4a

Browse files
authored
Fix mlperf inference docker run on Windows (#188)
* Fix docker run on windows, install-pip-package-for-mlc
1 parent 0f838b3 commit 39aff4a

File tree

9 files changed

+9
-11
lines changed

9 files changed

+9
-11
lines changed

script/app-mlperf-inference/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ deps:
113113
- 'yes'
114114
- tags: get,mlperf,inference,utils
115115

116-
- tags: install,pip-package,for-cmind-python,_package.pandas
116+
- tags: install,pip-package,for-mlc-python,_package.pandas
117117
enable_if_env:
118118
MLC_PROFILE_NVIDIA_POWER:
119119
- on

script/generate-mlperf-inference-submission/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ deps:
1717
- inference-src
1818
tags: mlcommons,inference,src
1919
- tags: get,sut,system-description
20-
- tags: install,pip-package,for-cmind-python,_package.tabulate
20+
- tags: install,pip-package,for-mlc-python,_package.tabulate
2121
- tags: get,mlperf,inference,utils
2222
- names:
2323
- get-mlperf-results-dir

script/install-pip-package-for-cmind-python/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

script/install-pip-package-for-cmind-python/meta.yaml renamed to script/install-pip-package-for-mlc-python/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
alias: install-pip-package-for-cmind-python
1+
alias: install-pip-package-for-mlc-python
22
automation_alias: script
33
automation_uid: 5b4e0237da074764
44
cache: true
@@ -7,8 +7,8 @@ tags:
77
- pip
88
- package
99
- pip-package
10-
- for-cmind-python
11-
- for.cmind-python
10+
- for-mlc-python
11+
- for.mlc-python
1212
uid: b16ed087abab459c
1313

1414
variations:

script/run-docker-container/customize.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ def postprocess(i):
160160
for mounts in env['MLC_DOCKER_VOLUME_MOUNTS']:
161161
mount_cmds.append(mounts)
162162

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

166167
if env.get('MLC_DOCKER_ADD_DEVICE', '') != '':

script/run-mlperf-automotive-app/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ deps:
120120
MLC_MLPERF_USE_DOCKER: [ off ]
121121
skip_if_env:
122122
OUTPUT_BASE_DIR: [ on ]
123-
- tags: install,pip-package,for-cmind-python,_package.tabulate
123+
- tags: install,pip-package,for-mlc-python,_package.tabulate
124124
- tags: get,mlperf,inference,utils
125125
skip_if_env:
126126
MLC_MLPERF_USE_DOCKER: [ on ]

script/run-mlperf-inference-app/meta.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,9 @@ deps:
156156
- tags: get,mlperf,inference,results,dir
157157
names:
158158
- get-mlperf-inference-results-dir
159-
enable_if_env:
160-
MLC_MLPERF_USE_DOCKER: [ off ]
161159
skip_if_env:
162160
OUTPUT_BASE_DIR: [ on ]
163-
- tags: install,pip-package,for-cmind-python,_package.tabulate
161+
- tags: install,pip-package,for-mlc-python,_package.tabulate
164162
- tags: get,mlperf,inference,utils
165163

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

0 commit comments

Comments
 (0)