diff --git a/Dell/benchmarks/stable_diffusion/implementations/pytorch/run_with_docker.sh b/Dell/benchmarks/stable_diffusion/implementations/pytorch/run_with_docker.sh index 56af2b35..14fecb00 100755 --- a/Dell/benchmarks/stable_diffusion/implementations/pytorch/run_with_docker.sh +++ b/Dell/benchmarks/stable_diffusion/implementations/pytorch/run_with_docker.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Copyright © 2023 Dell Inc. or its subsidiaries. All Rights Reserved. Dell Technologies, +# Dell and other trademarks are trademarks of Dell Inc. or its subsidiaries. +# Other trademarks may be trademarks of their respective owners." +# # Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -58,8 +62,6 @@ cleanup_docker trap 'set -eux; cleanup_docker' EXIT # Setup container -#docker run --gpus all --rm --init --detach \ -#docker run --gpus all --rm --shm-size=20g --init --detach -w /workspace/sd \ docker run --gpus all --rm --init --detach -w /workspace/sd \ --net=host --uts=host --ipc=host --security-opt=seccomp=unconfined \ --ulimit=stack=67108864 --ulimit=memlock=-1 \ @@ -74,21 +76,6 @@ for _experiment_index in $(seq 1 "${NEXP}"); do ( echo "Beginning trial ${_experiment_index} of ${NEXP}" - # Print system info -# docker exec -it "${_cont_name}" python -c " -#import mlperf_logger -#from mlperf_logging.mllog import constants -#mlperf_logger.mlperf_submission_log()" - - # Clear caches -# if [ "${CLEAR_CACHES}" -eq 1 ]; then -# sync && sudo /sbin/sysctl vm.drop_caches=3 -# docker exec -it "${_cont_name}" python -c " -#from mlperf_logging import mllog -#from mlperf_logging.mllog.constants import CACHE_CLEAR -#mllogger = mllog.get_mllogger() -#mllogger.event(key=CACHE_CLEAR, value=True)" -# fi if [ "${CLEAR_CACHES}" -eq 1 ]; then sync && sudo /sbin/sysctl vm.drop_caches=3 @@ -99,14 +86,6 @@ mllogger.event(key=mllog.constants.CACHE_CLEAR, value=True)" fi -# if [ "${CLEAR_CACHES}" -eq 1 ]; then -# sync && sudo /sbin/sysctl vm.drop_caches=3 -# docker exec -it "${_cont_name}" python -c " -#from mlperf_logging.mllog import constants -#from mlperf_common.logging import mllog_event -#mllog_event(key=constants.CACHE_CLEAR, value=True)" -# fi - # Run experiment docker exec -it "${_config_env[@]}" "${_cont_name}" \ mpirun --allow-run-as-root --bind-to none -np ${DGXNGPU} ./run_and_time.docker.sh