Skip to content

Commit

Permalink
Export _JAVA_OPTIONS for all
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieh-xlnx committed Sep 22, 2023
1 parent d453749 commit 8f7d966
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ ROUTER ?= rwroute
# Make /usr/bin/time only print out wall-clock time in seconds
export TIME=Wall-clock time (sec): %e

ifdef GITHUB_ACTIONS
_JAVA_OPTIONS = "-Xms6g -Xmx6g"
else
# Unless _JAVA_OPTIONS is set, sets the initial and maximum heap size of the JVM to be ~32GB
_JAVA_OPTIONS ?= "-Xms32736m -Xmx32736m"
endif
export _JAVA_OPTIONS

# Default recipe: route and score all given download-benchmarks
.PHONY: run-$(ROUTER)
run-$(ROUTER): score-$(ROUTER)
Expand Down Expand Up @@ -75,12 +83,11 @@ distclean: clean
#### BEGIN ROUTER RECIPES

## RWROUTE
# _JAVA_OPTIONS="-Xms32736m -Xmx32736m" sets the initial and maximum heap size of the JVM to be ~32GB
# /usr/bin/time is used to measure the wall clock time
# Gradle is used to invoke the PartialRouterPhysNetlist class' main method with arguments
# $< (%_unrouted.phys) and $@ (%_rwroute.phys), and redirecting all output into %_rwroute.phys.log
%_rwroute.phys: %_unrouted.phys | compile-java
(_JAVA_OPTIONS="-Xms6g -Xmx6g" /usr/bin/time ./gradlew -Dmain=com.xilinx.fpga24_routing_contest.PartialRouterPhysNetlist :run --args='$< $@') 2>&1 > $@.log
(/usr/bin/time ./gradlew -Dmain=com.xilinx.fpga24_routing_contest.PartialRouterPhysNetlist :run --args='$< $@') 2>&1 > $@.log

## NXROUTE-POC
%_nxroute-poc.phys: %_unrouted.phys xcvu3p.device | nxroute-deps fpga-interchange-schema/interchange/capnp/java.capnp
Expand Down

0 comments on commit 8f7d966

Please sign in to comment.