diff options
author | Yang Rong <rong.r.yang@intel.com> | 2015-12-22 16:36:32 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-12-23 14:34:46 +0800 |
commit | 8398f211d12f2caef263300f6f23c2c2a8bb931c (patch) | |
tree | 1e458ebd28e1f2f78c81b2bac4b8cff084b1f01f /CMakeLists.txt | |
parent | 032b606f8c5baa53e52b1f55c4f7c0bafdd6ff37 (diff) | |
download | beignet-8398f211d12f2caef263300f6f23c2c2a8bb931c.tar.gz |
Runtime: because double's built-ins haven't completely support, so disable it by default.
Add a cmake option for it, cmake with option -DEXPERIMENTAL_DOUBLE=true to enable it.
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@intel.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8762f7ce..97725caf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,11 +219,17 @@ ENDIF(OCLIcd_FOUND) Find_Package(PythonInterp) +OPTION(EXPERIMENTAL_DOUBLE "Enable experimental double support" OFF) +IF(EXPERIMENTAL_DOUBLE) + ADD_DEFINITIONS(-DENABLE_FP64) +ENDIF(EXPERIMENTAL_DOUBLE) + OPTION(BUILD_EXAMPLES "Build examples" OFF) IF(BUILD_EXAMPLES) IF(NOT X11_FOUND) MESSAGE(FATAL_ERROR "XLib is necessary for examples - not found") ENDIF(NOT X11_FOUND) + # libva & libva-x11 #pkg_check_modules(LIBVA REQUIRED libva>=0.36.0) pkg_check_modules(LIBVA REQUIRED libva) |