diff --git a/samples/lulesh/lulesh_sample1_macosx.yaml b/samples/lulesh/lulesh_sample1_macosx.yaml index 34c183ce8..f46ab20d1 100644 --- a/samples/lulesh/lulesh_sample1_macosx.yaml +++ b/samples/lulesh/lulesh_sample1_macosx.yaml @@ -14,6 +14,7 @@ env: - name: LULESH path: $(OUTPUT_PATH) url: https://github.com/LLNL/LULESH.git + tag: 2.0.3 study: - name: make-lulesh diff --git a/samples/lulesh/lulesh_sample1_unix.yaml b/samples/lulesh/lulesh_sample1_unix.yaml index 8430d760d..e5d98ede7 100644 --- a/samples/lulesh/lulesh_sample1_unix.yaml +++ b/samples/lulesh/lulesh_sample1_unix.yaml @@ -14,6 +14,7 @@ env: - name: LULESH path: $(OUTPUT_PATH) url: https://github.com/LLNL/LULESH.git + tag: 2.0.3 study: - name: make-lulesh diff --git a/samples/lulesh/lulesh_sample1_unix_linear.yaml b/samples/lulesh/lulesh_sample1_unix_linear.yaml index 0c65aa97b..51615a369 100644 --- a/samples/lulesh/lulesh_sample1_unix_linear.yaml +++ b/samples/lulesh/lulesh_sample1_unix_linear.yaml @@ -17,6 +17,7 @@ env: - name: LULESH path: $(OUTPUT_PATH) url: https://github.com/LLNL/LULESH.git + tag: 2.0.3 study: - name: make-lulesh diff --git a/samples/lulesh/lulesh_sample1_unix_slurm.yaml b/samples/lulesh/lulesh_sample1_unix_slurm.yaml new file mode 100644 index 000000000..7d5e3014d --- /dev/null +++ b/samples/lulesh/lulesh_sample1_unix_slurm.yaml @@ -0,0 +1,87 @@ +description: + name: lulesh_sample1 + description: A sample LULESH study that downloads, builds, and runs a parameter study of varying problem sizes and iterations. + +batch: + type: flux + bank: testbank + queue: pbatch + +env: + variables: + OUTPUT_PATH: ./sample_output/lulesh + + labels: + outfile: $(SIZE.label).$(ITERATIONS.label).log + + dependencies: + git: + - name: LULESH + path: $(OUTPUT_PATH) + url: https://github.com/LLNL/LULESH.git + tag: 2.0.3 + +study: + - name: make-lulesh + description: Build the serial version of LULESH. + run: + cmd: | + cd $(LULESH) + sed -i 's/^CXX = $(MPICXX)/CXX = $(SERCXX)/' ./Makefile + sed -i 's/^CXXFLAGS = -g -O3 -fopenmp/#CXXFLAGS = -g -O3 -fopenmp/' ./Makefile + sed -i 's/^#LDFLAGS = -g -O3/LDFLAGS = -g -O3/' ./Makefile + sed -i 's/^LDFLAGS = -g -O3 -fopenmp/#LDFLAGS = -g -O3 -fopenmp/' ./Makefile + sed -i 's/^#CXXFLAGS = -g -O3 -I/CXXFLAGS = -g -O3 -I/' ./Makefile + make clean + make + depends: [] + + - name: run-lulesh + description: Run LULESH. + run: + cmd: | + $(LAUNCHER) $(LULESH)/lulesh2.0 -s $(SIZE) -i $(ITERATIONS) -p > $(outfile) + depends: [make-lulesh] + nodes: 1 + procs: 1 + walltime: "00:10:00" + + - name: post-process-lulesh + description: Post process all LULESH results. + run: + cmd: | + echo "Unparameterized step with Parameter Independent dependencies." >> out.log + echo $(run-lulesh.workspace) > out.log + ls $(run-lulesh.workspace) > ls.log + depends: [run-lulesh_*] + + - name: post-process-lulesh-trials + description: Post process all LULESH results. + run: + cmd: | + echo "Parameterized step that has Parameter Independent dependencies" >> out.log + echo "TRIAL = $(TRIAL)" >> out.log + echo $(run-lulesh.workspace) >> out.log + ls $(run-lulesh.workspace) > out.log + depends: [run-lulesh_*] + + - name: post-process-lulesh-size + description: Post process all LULESH results. + run: + cmd: | + echo "Parameterized step that has Parameter Independent dependencies" >> out.log + echo "SIZE = $(SIZE)" >> out.log + echo $(run-lulesh.workspace) >> out.log + ls $(run-lulesh.workspace) | grep $(SIZE.label) >> out.log + depends: [run-lulesh_*] + +global.parameters: + TRIAL: + values : [1, 2, 3, 4, 5, 6, 7, 8, 9] + label : TRIAL.%% + SIZE: + values : [10, 10, 10, 20, 20, 20, 30, 30, 30] + label : SIZE.%% + ITERATIONS: + values : [10, 20, 30, 10, 20, 30, 10, 20, 30] + label : ITER.%%