Skip to content

Commit

Permalink
Update recipes for compiling Fortran benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Aug 8, 2019
1 parent 0bd1893 commit 7056980
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions tools/make/lib/benchmark/fortran.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
# limitations under the License.
#/

# VARIABLES #

# Define the path to a script for compiling a Fortran benchmark:
compile_fortran_benchmark_bin := $(TOOLS_DIR)/scripts/compile_fortran_benchmark


# RULES #

#/
Expand All @@ -40,10 +46,12 @@ benchmark-fortran:
$(QUIET) $(FIND_FORTRAN_BENCHMARKS_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
echo ""; \
echo "Running benchmark: $$file"; \
cd `dirname $$file` && \
$(MAKE) clean && \
$(MAKE) && \
cd `dirname $$file` && $(MAKE) clean && \
OS="$(OS)" \
NODE="$(NODE)" \
NODE_PATH="$(NODE_PATH)" \
FORTRAN_COMPILER="$(FC)" \
"${compile_fortran_benchmark_bin}" $$file && \
$(MAKE) run || exit 1; \
done

Expand All @@ -68,10 +76,12 @@ benchmark-fortran-files:
$(QUIET) for file in $(FILES); do \
echo ""; \
echo "Running benchmark: $$file"; \
cd `dirname $$file` && \
$(MAKE) clean && \
$(MAKE) && \
cd `dirname $$file` && $(MAKE) clean && \
OS="$(OS)" \
NODE="$(NODE)" \
NODE_PATH="$(NODE_PATH)" \
FORTRAN_COMPILER="$(FC)" \
"${compile_fortran_benchmark_bin}" $$file && \
$(MAKE) run || exit 1; \
done

Expand Down

0 comments on commit 7056980

Please sign in to comment.