Browse Source

max: Use maxJavaRun rather than hardcoding the java call

Samuel Thibault 4 years ago
parent
commit
7245b5c7e1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/Makefile.am

+ 2 - 1
tests/Makefile.am

@@ -1148,6 +1148,7 @@ endif
 
 # Maxeler compiler
 if STARPU_USE_FPGA
+# or DFE for hardware execution
 MAX_TARGET ?= DFE_SIM
 MAX_DFE = MAX5C_$(MAX_TARGET)
 
@@ -1157,7 +1158,7 @@ $(CLASS) &: $(MAXJ)
 	maxjc -1.7 -cp $$MAXCLASSPATH $(dir $<)
 
 %.max: %Manager.class
-	java -XX:+UseSerialGC -Xmx2048m -cp $$MAXCLASSPATH:. $(shell dirname $*).$(notdir $*)Manager DFEModel=MAIA maxFileName=$(notdir $*) target=$(MAX_TARGET)
+	CLASSPATH=$$CLASSPATH:. maxJavaRun $(shell dirname $*).$(notdir $*)Manager DFEModel=MAIA maxFileName=$(notdir $*) target=$(MAX_TARGET)
 	cp $(notdir $*)_$(MAX_DFE)/results/$(notdir $*).{max,h} $(dir $@)
 
 slic_%.o: %.max