Skip to content

Files

Latest commit

0746c8c · Jan 21, 2025

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Nov 25, 2024
Jan 21, 2025
Aug 7, 2024

README.md

Celerity Example Projects

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).

Setup

Begin by copying an example project folder that best fits your use case:

cp -r celerity-runtime/examples/convolution my-project

Build Configuration

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.

With AdaptiveCpp (exemplary)

cd my-project
cmake -B build \
    -DCMAKE_PREFIX_PATH="../celerity-runtime-install" \
    -DACPP_TARGETS=cuda:sm_75

With DPC++ (exemplary)

cd my-project
cmake -B build \
    -DCMAKE_PREFIX_PATH="../celerity-runtime-install" \
    -DCMAKE_CXX_COMPILER=/opt/dpcpp/bin/clang++