Skip to content

Instantly share code, notes, and snippets.

@Kazhuu
Last active May 12, 2021 09:01
Show Gist options
  • Save Kazhuu/0200f276f24b4db74f8e010cdb9a364c to your computer and use it in GitHub Desktop.
Save Kazhuu/0200f276f24b4db74f8e010cdb9a364c to your computer and use it in GitHub Desktop.
pocl-develop-cmake-generate-command
# CMake generate command for pocl development using localy compiled LLVM.
# For more details check http://portablecl.org/docs/html/install.html
# Pocl will automatically notice if LLVM have been built as a single shared library or not.
# Modify DWITH_LLVM_CONFIG to your local LLVM install folder and remove if system LLVM is used.
# Note: Use LLVM install folder, not build folder!
# If you want to enable Intel Threading Blocks (TBB) device alongside with default pthread
# device then also pass -DENABLE_TBB_DEVICE:BOOL=ON option as well. Make sure TBB is installed.
cmake -G Ninja \
-DWITH_LLVM_CONFIG:PATH="<path-llvm-install-folder>/bin/llvm-config" \
-DPOCL_DEBUG_MESSAGES:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=Debug ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment