Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Executing the example locally

After cloning the repo, with `git switch support_official` and switching to the proper branch `git switch support_official`, it is important to setup correctly the environment. To do so we recommend to use NIX + direnv.

To run the example locally follow those steps:

1. Enter the proper directory:
`cd example`
2. Compile the code:
```
cmake -S . -B build
make -C build
```
3. Copy the simulation to the directory `experiment`:
`cp build/simulation experiment/`
4. Enter in directory `experiment`:
`cd experiment`
5. Execute the script `script.sh`, this will launch a Dask scheduler, launch the Dask workers, execute the python code in `../derivative.py`, and finally run the simulation:
`bash script.sh`

Note: after running it, if you finish the script with Ctrl+C it is important to kill Dask processes: `pkill dask`.