Clone with
git clone --recurse-submodules git@gitlab.rlp.net:markus-vieth/templates/cuda-project-template.git
Generates a build which can be used with the following code in other projects:
Include(FetchContent)
FetchContent_Declare(
hpc_helper
GIT_REPOSITORY <PATH>
GIT_TAG <TAG>)
FetchContent_MakeAvailable(<NAME>)
target_link_libraries(${PROJECT_NAME} PUBLIC <namespace>::<name>)
In the same way, other projects can be added to this one.
Build with something like
cmake -S . -B build -DCMAKE_CUDA_COMPILER=nvcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Debug -G Ninja
cmake --build build
Docs
Docs are generated automatically with doxygen and automatically deployed to the gitlab pages.
Example:
https://markus-vieth.pages.gitlab.rlp.net/cuda-project-template