Skip to content

Commit

Permalink
Addition of linear LULESH samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Di Natale committed Oct 31, 2018
1 parent 511a21e commit 03571c3
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 0 deletions.
70 changes: 70 additions & 0 deletions samples/lulesh/lulesh_sample1_macosx_linear.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
description:
name: lulesh sample1
description: A sample LULESH study that downloads, builds, and runs a parameter study of varying problem sizes and iterations.

env:
variables:
OUTPUT_PATH: ./sample_output/lulesh
SIZE: 10
ITERATIONS: 20
TRIAL: 1

labels:
outfile: SIZE.$(SIZE).ITER.$(ITERATIONS).log

dependencies:
git:
- name: LULESH
path: $(OUTPUT_PATH)
url: https://github.com/LLNL/LULESH.git

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: |
$(LULESH)/lulesh2.0 -s $(SIZE) -i $(ITERATIONS) -p > $(outfile)
depends: [make-lulesh]

- 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.$(SIZE) >> out.log
depends: [run-lulesh]
70 changes: 70 additions & 0 deletions samples/lulesh/lulesh_sample1_unix_linear.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
description:
name: lulesh sample1
description: A sample LULESH study that downloads, builds, and runs a parameter study of varying problem sizes and iterations.

env:
variables:
OUTPUT_PATH: ./sample_output/lulesh
SIZE: 10
ITERATIONS: 20
TRIAL: 1

labels:
outfile: SIZE.$(SIZE).ITER.$(ITERATIONS).log

dependencies:
git:
- name: LULESH
path: $(OUTPUT_PATH)
url: https://github.com/LLNL/LULESH.git

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: |
$(LULESH)/lulesh2.0 -s $(SIZE) -i $(ITERATIONS) -p > $(outfile)
depends: [make-lulesh]

- 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.$(SIZE) >> out.log
depends: [run-lulesh]

0 comments on commit 03571c3

Please sign in to comment.