This repository holds files to call Preesm from the command line. The main script is commandLinePreesm.sh and consists in calling the Eclipse distribution with proper application, workspace, arguments, etc. The batch file wraps the call to bash script using a local Cygwin installation (automatically installed).
Both the batch and bash scripts expect the same arguments, in the following order :
PREESMDIR
: The absolute path to the Preesm distribution to use;APPDIR
: The absolute path to the Preesm project;WORKFLOW
: The filename of the workflow to execute;SCENARIO
: The filename of the scenario to use when executing the workflow;
In order for Preesm to find the workflow and scenario files, they must be located respectively in the folder <project folder>/Workflows
and <project folder>/Scenarios
(case matters). The bash script checks their existence at start.
preesm-test.sh and preesm-test.bat present basic use of the Preesm CLI Wrappers.
call .\commandLinePreesm.bat "E:\preesm_CLI\preesm-2.13.0" "E:\preesm_CLI\preesm-tuto" "Codegen.workflow" "03-parasobel_4core.scenario"
./commandLinePreesm.sh "/tmp/preesm_CLI/preesm-2.13.0" "/tmp/preesm_CLI/preesm-tuto/" "Codegen.workflow" "03-parasobel_4core.scenario"
Note:
- Eclipse path can be either windows-like or unix-like;
- Project path should be Windows-like, with backslashes :
<Drive Letter>:\path\to\project
./commandLinePreesm.sh "E:\preesm_CLI\preesm-2.13.0" "E:\preesm_CLI\preesm-tuto" "Codegen.workflow" "03-parasobel_4core.scenario"
## OR
./commandLinePreesm.sh "/cygdrive/e/preesm_CLI/preesm-2.13.0" "E:\preesm_CLI\preesm-tuto" "Codegen.workflow" "03-parasobel_4core.scenario"