Skip to content

Commit

Permalink
Updated the LULESH examples to use the LULESH git repository for clon…
Browse files Browse the repository at this point in the history
…ing the repo (#121)
  • Loading branch information
jsemler authored and FrankD412 committed Jul 26, 2018
1 parent 6fbe0b1 commit aa28222
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
22 changes: 9 additions & 13 deletions samples/lulesh/lulesh_sample1_macosx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,36 @@ description:
env:
variables:
OUTPUT_PATH: ./sample_output/lulesh
LULESH_URL: https://codesign.llnl.gov/lulesh/lulesh2.0.3.tgz

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

study:
- name: get-lulesh
description: Download LULESH and extract it.
run:
cmd: |
curl -L -o lulesh.tar $(LULESH_URL)
mkdir $(WORKSPACE)/lulesh
tar -xf lulesh.tar -C $(WORKSPACE)/lulesh
depends: []
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 $(get-lulesh.workspace)/lulesh
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: [get-lulesh]
depends: []

- name: run-lulesh
description: Run LULESH.
run:
cmd: |
$(get-lulesh.workspace)/lulesh/lulesh2.0 -s $(SIZE) -i $(ITERATIONS) -p > $(outfile)
$(LULESH)/lulesh2.0 -s $(SIZE) -i $(ITERATIONS) -p > $(outfile)
depends: [make-lulesh]

- name: post-process-lulesh
Expand Down
22 changes: 9 additions & 13 deletions samples/lulesh/lulesh_sample1_unix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,36 @@ description:
env:
variables:
OUTPUT_PATH: ./sample_output/lulesh
LULESH_URL: https://codesign.llnl.gov/lulesh/lulesh2.0.3.tgz

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

study:
- name: get-lulesh
description: Download LULESH and extract it.
run:
cmd: |
curl -L -o lulesh.tar $(LULESH_URL)
mkdir $(WORKSPACE)/lulesh
tar -xf lulesh.tar -C $(WORKSPACE)/lulesh
depends: []
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 $(get-lulesh.workspace)/lulesh
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: [get-lulesh]
depends: []

- name: run-lulesh
description: Run LULESH.
run:
cmd: |
$(get-lulesh.workspace)/lulesh/lulesh2.0 -s $(SIZE) -i $(ITERATIONS) -p > $(outfile)
$(LULESH)/lulesh2.0 -s $(SIZE) -i $(ITERATIONS) -p > $(outfile)
depends: [make-lulesh]

- name: post-process-lulesh
Expand Down

0 comments on commit aa28222

Please sign in to comment.