tree: 844677202214713d1faabab7c0ebe2f9c5cfa435 [path history] [tgz]
  1. CMakeLists.txt
  2. README.md
  3. cmake/
  4. include/
  5. src/
  6. validation/
compute_kernel_writer/README.md

Compute Kernel Writer

Project description to follow.

Getting started

Building and running tests

The fastest way to get started with Compute Kernel Writer is to build and run the test suite.

Compile natively on Linux x86_64

mkdir build && cd build
CC=gcc CXX=g++ cmake -G Ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCKW_ENABLE_OPENCL=ON -DCKW_ENABLE_ASSERTS=ON -DCKW_BUILD_TESTING=ON ..
cmake --build .

Cross-compile to Linux aarch64

mkdir build && cd build
cmake -G Ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCKW_ENABLE_OPENCL=ON -DCKW_ENABLE_ASSERTS=ON -DCKW_BUILD_TESTING=ON -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/gcc_linux_aarch64.toolchain.cmake ..
cmake --build .

Cross-compile to Android aarch64

Cross-compiling to the Android platform requires the toolchain CMake file downloaded in the Android NDK.

mkdir build && cd build
cmake -G Ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCKW_ENABLE_OPENCL=ON -DCKW_ENABLE_ASSERTS=ON -DCKW_BUILD_TESTING=ON -DCMAKE_TOOLCHAIN_FILE=<NDK>/build/cmake/android.toolchain.cmake ..
cmake --build .

Run the validation suite

./ckw_validation