Skip to content
Snippets Groups Projects
Commit 755c191b authored by Forget Julien's avatar Forget Julien
Browse files

Update for ptask.


git-svn-id: https://svn.onera.fr/Prelude/Prelude/trunk@893 49f62630-d767-4ccd-930e-b3f5589f52e1
parent e87809d8
No related branches found
No related tags found
No related merge requests found
Requirements
------------
Executing with Linux
------
Pre-requisites
- Prelude
- Schedmcore (see http://sites.onera.fr/schedmcore/)
- ptask (https://github.com/glipari/ptask)
- the liballegro package
To build and execute (the sampling example) in mono-core:
make -f ../../share/ptask_wrapper.make NODE=sampling PROG=sampling
sudo sh -c "echo -1 > /proc/sys/kernel/sched_rt_runtime_us"
./sampling
For multi-core, compile with ptask_wrapper_aer.make instead.
Executing with SchedMCore
------
Pre-requisites:
- Prelude
- SchedMCore (see http://sites.onera.fr/schedmcore/)
- "cmake", a package should be available for most Linux architectures
To execute in monocore mode, you can for instance use the following sequence of commands:
To build and execute, you can use the following sequence of commands:
1) mkdir build
2) cd build
3) cmake -DPRELUDE_PATH_HINT=/INSTALL_DIR/prelude-x.x/ ..
4) make
5) lsmc_run -l ./libsampling.so -s pluedf -c 1 -b 1000
5) lsmc_run -l ./libsampling-noencoding.so -s edf -c 4 -b 1000
This will run the program on 4 cores with the EDF scheduling
policy, with a Prelude time unit set to 1ms.
To execute in multicore mode:
1) Edit CMakeLists.txt and change the Prelude_Compile command to replace
it by the commented version
2) mkdir build
3) cd build
4) cmake -DPRELUDE_PATH_HINT=/INSTALL_DIT/prelude-x.x/ ..
5) make
6) lsmc_run -l ./libsampling.so -s edf -c 4 -b 1000
This example will run the program on 4 cores with the classic EDF policy.
To compile your own program, change the MODEL_NAME variable in file
CMakeLists.txt
To adapt this Makefile to your own program, simply change the MODEL_NAME
variable in file CMakeLists.txt
To change compilation options, modify the Prelude_Compile variable,
according to the options defined in ../../share/FindPrelude.cmake
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment