Skip to content

Commit

Permalink
add debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
laszewsk committed Oct 4, 2023
1 parent 5995bf7 commit 1349b4f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions benchmarks/cloudmask/target/greene_v0.5/simple.rivanna.slurm
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ nvidia-smi

cd $TARGET

# mkdir -p outputs/slstr_cloud
mkdir -p outputs/slstr_cloud

# sleep 1

cms gpu watch --gpu=0 --delay=0.5 --dense > outputs/gpu0.log &

python slstr_cloud.py --config config_simple.yaml
python ./slstr_uva_nyu_cloud.py --config config_simple_rivanna.yaml

seff $SLURM_JOB_ID
20 changes: 16 additions & 4 deletions benchmarks/cloudmask/target/greene_v0.5/slstr_uva_nyu_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from mlperf_logging import mllog
import logging
from tensorflow.keras.callbacks import EarlyStopping, LearningRateScheduler
from cloudmesh.common.FlatDict import read_config_parameters
from cloudmesh.common.FlatDict import FlatDict
import random

# config = read_config_parameters(filename='config.yaml')
Expand Down Expand Up @@ -364,17 +364,29 @@ def main():
help='path to config file')
command_line_args = parser.parse_args()


configYamlFile = os.path.expanduser(command_line_args.config)
config = read_config_parameters(filename=configYamlFile)

log_file = os.path.expanduser(config['log_file'])
print("Config file:", configYamlFile)

user_name = config["submission.submitter"]
config = FlatDict
config.load(content=configYamlFile)

print (config)


# setup
log_file = os.path.expanduser(config['log_file'])
user_name = config["submission.submitter"]

# MLCommons logging
mlperf_logfile = os.path.expanduser(config['mlperf_logfile'])
mllog.config(filename=mlperf_logfile)

print("user", user_name)
print("log_file", log_file)
print ("mllog", mlperf_logfile)

mllogger = mllog.get_mllogger()
logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 1349b4f

Please sign in to comment.