Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust comments #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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 \
Expand All @@ -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
Expand All @@ -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
Expand Down