These example projects are a useful starting point for developing your own Celerity
application. All examples will also be built automatically in-tree with the runtime
when the CELERITY_BUILD_EXAMPLES
CMake option is set (true by default).
Begin by copying an example project folder that best fits your use case:
cp -r celerity-runtime/examples/convolution my-project
Configure the project with CMake and make sure Celerity can be found by setting
CMAKE_PREFIX_PATH
to include the Celerity installation directory. Depending on your SYCL implementation,
you may also have to specify additional target options.
cd my-project
cmake -B build \
-DCMAKE_PREFIX_PATH="../celerity-runtime-install" \
-DACPP_TARGETS=cuda:sm_75
cd my-project
cmake -B build \
-DCMAKE_PREFIX_PATH="../celerity-runtime-install" \
-DCMAKE_CXX_COMPILER=/opt/dpcpp/bin/clang++