Skip to content

Commit

Permalink
integrate cloudmesh ee in cloudmask 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
laszewsk committed Oct 5, 2023
1 parent 5831e26 commit e7a39e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
21 changes: 13 additions & 8 deletions benchmarks/cloudmask/target/greene_v0.5/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ SHELL := /bin/bash
AWS_S3=aws s3 --no-sign-request --endpoint-url https://s3.echo.stfc.ac.uk
NAME=cloudmask
VENV=/scratch/$(USER)/ENV3
PRG=cloudmask_v0.5.py

.PHONY: data clean project localscratch singularity stop singularity.json
.PHONY: project data clean project localscratch singularity stop singularity.json

all: project localscratch shm generate

Expand All @@ -28,7 +29,11 @@ data:
data-rivanna:
time cp -rv /project/bii_dsc_community/mlcommons/data/cloudmask/* $(PROJECT_DATA)

project: project.json generate
project: clean-project project.json generate

clean-project:
rm -rf project
rm -f project.json jobs-project.sh

generate: jobs-project.sh

Expand All @@ -40,19 +45,19 @@ submit:
localscratch: localscratch.json

jobs-%.sh: %.json
cms sbatch generate submit --name=$< > $@
cms ee generate submit --job_type=sbatch --name=$< > $@

%.json: config.in.yaml
%.json: config.in.yaml cloudmask_v0.5.in.slurm
source ${VENV}/bin/activate ; \
cms sbatch generate \
--source=slurm.in.sh \
cms ee generate \
--source=cloudmask_v0.5.in.slurm \
--config=$< \
--name=$(basename $@) \
--noos \
--os=USER \
--os=USER,HOME \
--output_dir=./$(basename $@) \
--source_dir=. \
--copycode=slstr_cloud.py \
--copycode="${PRG},data_loader.py,model.py" \
--verbose

kill: stop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

name: cloudmask-greene


sbatch:
mode: h
dir: localscratch


run:
venvpath: "/scratch/{os.USER}/ENV3"
datadir: "/scratch/{os.USER}/data"
Expand Down

0 comments on commit e7a39e4

Please sign in to comment.