Skip to content
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/run-docker-container/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ category: Docker automation
default_env:
CM_DOCKER_DETACHED_MODE: 'yes'
CM_DOCKER_REUSE_EXISTING_CONTAINER: 'no'
CM_DOCKER_PRIVILEGED_MODE: 'no'

input_mapping:
all_gpus: CM_DOCKER_ADD_ALL_GPUS
Expand Down
3 changes: 3 additions & 0 deletions script/run-docker-container/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def postprocess(i):
if env.get('CM_DOCKER_ADD_DEVICE', '') != '':
run_opts += " --device="+env['CM_DOCKER_ADD_DEVICE']

if env.get('CM_DOCKER_PRIVILEGED_MODE', '') == 'yes':
run_opts += " --privileged "

if env.get('CM_DOCKER_ADD_NUM_GPUS', '') != '':
run_opts += " --gpus={}".format(env['CM_DOCKER_ADD_NUM_GPUS'])
elif env.get('CM_DOCKER_ADD_ALL_GPUS', '') != '':
Expand Down
1 change: 1 addition & 0 deletions script/run-mlperf-inference-app/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ default_env:
CM_MLPERF_MODEL: resnet50
CM_MLPERF_RUN_STYLE: test
CM_MLPERF_SKIP_SUBMISSION_GENERATION: no
CM_DOCKER_PRIVILEGED_MODE: yes

input_mapping:
api_server: CM_MLPERF_INFERENCE_API_SERVER
Expand Down