Skip to content

Commit

Permalink
Update instructions for custom build with FLP suite (#1984)
Browse files Browse the repository at this point in the history
  • Loading branch information
knopers8 authored Sep 13, 2023
1 parent 7d73bd5 commit a0dc3f4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions doc/Advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -894,9 +894,9 @@ cd QualityControl
git checkout <release> # use the release included in the installed FLP suite
mkdir build
cd build
mkdir ~/installdir
cmake -DCMAKE_INSTALL_PREFIX=~/installdir ..
make -j16 install
mkdir /tmp/installdir
cmake -DCMAKE_INSTALL_PREFIX=/tmp/installdir -G Ninja -DCLANG_EXECUTABLE=/opt/o2/bin-safe/clang -DCMAKE_BUILD_TYPE=RelWithDebugInfo ..
ninja -j16 install
```

***Compilation on top of a local O2***
Expand All @@ -909,31 +909,31 @@ cd AliceO2
git checkout <release> # use the release included in the installed FLP suite
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=~/installdir ..
make -j8 install
cmake -DCMAKE_INSTALL_PREFIX=/tmp/installdir -G Ninja -DCLANG_EXECUTABLE=/opt/o2/bin-safe/clang -DCMAKE_BUILD_TYPE=RelWithDebugInfo ..
ninja -j8 install
# QC
git clone https://github.com/AliceO2Group/QualityControl.git
cd QualityControl
git checkout <release> # use the release included in the installed FLP suite
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=~/installdir .. -DO2_ROOT=~/installdir
make -j8 install
cmake -DCMAKE_INSTALL_PREFIX=/tmp/installdir -G Ninja -DCLANG_EXECUTABLE=/opt/o2/bin-safe/clang -DCMAKE_BUILD_TYPE=RelWithDebugInfo -DO2_ROOT=/tmp/installdir ..
ninja -j8 install
```

***Important step in case several nodes are involved***

In case the workflows will span over several FLPs and/or QC machines, one should `scp` the `installdir` to the other machines in the right home directory. The user on the FLPs is `flp` and `qc` on the QC nodes.
In case the workflows will span over several FLPs and/or QC machines, one should `scp` the `installdir` to the other machines in the same directory.

**Use it in aliECS**

In the aliECS gui, in the panel "Advanced Configuration", et an extra variable `extra_env_vars` and set it to
```
PATH=~/installdir/bin/:$PATH LD_LIBRARY_PATH=~/installdir/lib/:$LD_LIBRARY_PATH QUALITYCONTROL_ROOT=~/installdir/
PATH=/tmp/installdir/bin/:$PATH; LD_LIBRARY_PATH=/tmp/installdir/lib/:/tmp/installdir/lib64/:$LD_LIBRARY_PATH; QUALITYCONTROL_ROOT=/tmp/installdir/; echo
```

Replace ~/installdir (which is relative to user flp) with your own path. Make sure that the directory is anyway readable and traversable by user flp.
Replace `/tmp/installdir` with your own path. Make sure that the directory is anyway readable and traversable by users `flp` and `qc`

## Switch detector in the workflow _readout-dataflow_

Expand Down

0 comments on commit a0dc3f4

Please sign in to comment.