Skip to content

Commit

Permalink
update config access
Browse files Browse the repository at this point in the history
  • Loading branch information
laszewsk committed Oct 15, 2023
1 parent 3d941d8 commit 9bf67ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion benchmarks/cloudmask/target/summit-no-sciml/slstr_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def main():
with open(configFile, 'r') as stream:
args = yaml.safe_load(stream)
log_file = os.path.expanduser(args['log_file'])

print(args)

# Training
start = time.time()
Expand Down Expand Up @@ -221,7 +223,7 @@ def main():
StopWatch.event(f"number of inferences {number_inferences}")
StopWatch.event(f"time per inference {time_per_inference}")
StopWatch.event(f"nodes {args['nodes']}")
StopWatch.event(f"gpus {args['gpus']}")
StopWatch.event(f"gpus {args['gpu']}")
print("number_inferences: ", number_inferences)
with open(log_file, "a") as logfile:
logfile.write(f"CloudMask inference, inferences={number_inferences}, bs={args['batch_size']}, nodes={args['nodes']}, gpus={args['gpu']}, time_per_inference={time_per_inference_str}\n")
Expand Down

0 comments on commit 9bf67ee

Please sign in to comment.