Skip to content

Commit d22033c

Browse files
committed
GPU: Add script for standalone build in the CI
1 parent 0c08a1f commit d22033c

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
if [[ -z $1 ]]; then
3+
echo "Please provide Sourcedir as command line argument"
4+
exit 1
5+
fi
6+
mkdir -p standalone/build
7+
pushd standalone/build
8+
cp $1/GPU/GPUTracking/Standalone/cmake/config.cmake .
9+
cat >> config.cmake << "EOF"
10+
set(ENABLE_CUDA 1)
11+
set(ENABLE_HIP 1)
12+
set(ENABLE_OPENCL 1)
13+
set(GPUCA_CONFIG_ONNX 1)
14+
set(GPUCA_BUILD_EVENT_DISPLAY 0)
15+
EOF
16+
cmake -DCMAKE_INSTALL_PREFIX=../ $1/GPU/GPUTracking/Standalone
17+
make ${JOBS+-j $JOBS} install
18+
popd

GPU/documentation/build-standalone.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ And there are plenty of additional settings to enable/disable event display, qa,
3535

3636
This will create the `ca` binary in `~/standalone`, which is basically the same as the `o2-gpu-standalone-benchmark`, but built outside of O2.
3737

38+
As an exacmple you can also have a look at [build.sh](https://github.com/AliceO2Group/AliceO2/blob/dev/GPU/GPUTracking/Standalone/cmake/build.sh), which is used by the CI.
39+
3840
# Running
3941

4042
The following command lines will use `./ca`, in case you use the executable from the O2 build, please replace by `o2-gpu-standalone-benchmark`.

GPU/documentation/deterministic-mode.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This is steered by 3 options:
1212
- The `--PROCdeterministicGPUReconstruction` command line option / `GPU_proc.deterministicGPUReconstruction` `--configKeyValue` setting : Run time setting.
1313
- The `--RTCdeterministic` command line option / `GPU_proc_rtc.deterministic` `--configKeyValue` setting. (Auto-enabled by the `deterministicGPUReconstruction` setting.) : Compile-time setting for RTC code.
1414

15+
Note that enabling a single setting will not result in fully deterministic behavior! Each setting enables different deterministic aspects!
1516
In order to be fully deterministic, all settings must be enabled, where the RTC setting is automatically enabled if not explicitly disabled.
1617

1718
`GPUCA_DETERMINISTIC_MODE` has multiple levels, which are described here: [FindO2GPU.cmake](https://github.com/AliceO2Group/AliceO2/blob/80a80a17f5a1d9cb77743e2a39b15b653fe1a4f9/dependencies/FindO2GPU.cmake#L72).

0 commit comments

Comments
 (0)