[feat] tornadovm list of options from command line
@@ -46,13 +46,24 @@ function print_usage() {
echo " -v|--verbose Enable verbose output"
echo " -d|--debug Enable debug output"
echo ""
+ echo " Debugging options:"
+ echo ""
+ echo " --debug Print debugging information"
echo " --printBytecodes Print TornadoVM bytecodes"
echo " --igv Dump GRAAL IR into IGV"
echo " --printKernel Print autogenerated OpenCL C Kernel"
- echo " --debug Print debugging information"
- echo " --version Print TornadoVM version information"
- echo " --printFlags Print TornadoVM Java flags and exits"
- echo " --devices Print TornadoVM available devices and exits"
+ echo ""
+ echo " TornadoVM settings:"
+ echo ""
+ echo " --printFlags Print TornadoVM Java flags and exit"
+ echo " --version Print TornadoVM version information and exit"
+ echo " --devices Print TornadoVM available devices and exit"
+ echo ""
+ echo " TornadoVM display all options:"
+ echo ""
+ echo " --options Print all TornadoVM options and flags, and exit"
+ echo ""
+ echo " Maven:"
echo ""
echo " --mavenLocalInstall Install all maven packages locally"
echo ""
@@ -64,6 +75,34 @@ function print_version() {
exit 0
}
+function print_all_options() {
+ echo "TornadoVM options"
+ echo ""
+ echo " Debugging Information: "
+ echo ""
+ echo -e "\tPrint all Devices available : --devices "
+ echo -e "\tPrint Generated Kernel : -Dtornado.opencl.source.print=True "
+ echo -e "\tPrint Kernel Debug Information: -Dtornado.debug=True "
+ echo -e "\tEnable Full Debug : -Dtornado.fullDebug=True "
+ echo -e "\tDump Compiled Graphs into IGV : -Dgraal.Dump=*:5 -Dgraal.PrintGraph=Network -Dgraal.PrintCFG=false "
+ echo ""
+ echo " Change The Device To Run the Application (by default is 0): "
+ echo -e "\tChange OpenCL device to run the application: -D<task-scheduleName>.<taskName>=0:<deviceID> (e.g., -Ds0.t0.device=0:2)"
+ echo ""
+ echo " Profiler: "
+ echo -e "\tEnable Online Profiler : -Dtornado.profiler=True "
+ echo -e "\tSave Profiler into a File : -Dtornado.profiler=True -Dtornado.profiler.save=True "
+ echo -e "\tEnable Profiler and print at the end of the execution: -Dtornado.profiler=True -Dtornado.log.profiler=True "
+ echo ""
+ echo " Device Heap: "
+ echo -e "\tResize the Device Heap (1GB by default): -Dtornado.heap.allocation=512MB"
+ echo ""
+ echo " FPGA: "
+ echo -e "\tLoad the FPGA configuration file: -Dtornado.fpga.conf.file=<file>"
+ echo -e "\tGet a precompiled binary : -Dtornado.precompiled.binary=<path> "
+ echo ""
+}
+
JAVA_CMD=${JAVA_HOME}/bin/java
JAVA_VERSION=$("$JAVA_CMD" -version 2>&1 | awk -F[\"\.] -v OFS=. 'NR==1{print $2,$3}')
@@ -76,6 +115,7 @@ fi
printflags=0
printdevices=0
+printAllOptions=0
POSITIONAL=()
while [[ $# -gt 0 ]]; do
@@ -118,6 +158,10 @@ while [[ $# -gt 0 ]]; do
printdevices=1
shift
;;
+ --options)
+ print_all_options
+ exit 0
+ ;;
-h | --help)
print_usage
shift
