Commit 59dab414 authored by Dorothea Vom Bruch's avatar Dorothea Vom Bruch
Browse files

Update contributing.md

parent 418b7142
Pipeline #1479935 passed with stage
in 1 minute and 46 seconds
......@@ -91,6 +91,28 @@ If your new algorithm does not use any Velo related objects, this is not necessa
The includes of main, gear and sequence are required for any new algorithm in Allen.
Link the new library "Saxpy" to the stream librariy in `stream/CMakeLists.txt`:
```cmake=
target_link_libraries(Stream PRIVATE
HostStream
CudaCommon
Associate
Velo
AllenPatPV
PV_beamline
HostClustering
HostPrefixSum
UT
Kalman
VertexFitter
RawBanks
SciFi
HostGEC
Muon
Utils
Saxpy)
```
Next, we create the header file for our algorithm `SAXPY_example.cuh`, which is similar to an algorithm definition in Gaudi: inputs, outputs and properties are defined, as well as the algorithm function itself and an operator calling the function.
There are slight differences to Gaudi, since we want to be able to run the algorithm on a GPU.
The full file can be viewed [here](https://gitlab.cern.ch/lhcb/Allen/blob/dovombru_update_documentation/cuda/example/include/SAXPY_example.cuh). Let's take a look at the components:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment