Last active
May 12, 2021 09:01
-
-
Save Kazhuu/0200f276f24b4db74f8e010cdb9a364c to your computer and use it in GitHub Desktop.
pocl-develop-cmake-generate-command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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