summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2013-05-23Change CMake to support LLVM 3.1.Yang Rong1-1/+1
Also fix LLVM 3.1 build errors caused by my vector scalarize commit. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-05-08CMakeLists.txt enable custom C/CXXFLAGSMario Kicherer1-2/+2
Signed-off-by: Mario Kicherer <dev@kicherer.org> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-04-18Implement KHR ICD extensionSimon Richter1-0/+7
This adds a pointer to the dispatch table at the beginning of every object of type - cl_command_queue - cl_context - cl_device_id - cl_event - cl_kernel - cl_mem - cl_platform_id - cl_program - cl_sampler as required by the ICD specification. The layout of the dispatch table comes from the OpenCL ICD loader by Brice Videau <brice.videau@imag.fr> and Vincent Danjean <Vincent.Danjean@ens-lyon.org>. To avoid dispatch table entries being overwritten with the ICD loader's implementations of the CL functions (as would be the proper behaviour for the ELF loader), the -Bsymbolic option is given to the linker. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-04-17--no-rtti should be changed to -fno-rtti in clang++Lu Guanqun1-1/+1
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-04-10Set the initial library versions to 0.1.Zhigang Gong1-1/+8
We have two libraries here, one is the gen backend and the other is libcl runtime library. We set both initial versions to 0.1. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>
2013-04-10Implement cl_khr_gl_sharing by using upstream technology.Zhigang Gong1-2/+0
The previous implementation use a modified mesa library and can't work with upstream mesa. Now I managed to use existing egl extension and gbm to import a gl texture to a cl image. Actually, the gbm can't fully support our purpose, as it can't lookup image for egl x11 platform. We have to touch gbm's internal data structure to manually initialize its image extension. Furthermore, gbm only provide the API to get the image's handle, and doesn't provide the one to get image's name. As we are using different fd from the existing GL loader. The handle is useless for us. I use the DRI2 image extension function directly to get the name rather than the handle. And it works well. Now, after this patch applied. The cl_khr_gl_sharing could work with upstream mesa. I recommend you use the latest git master version. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Tested-by: Homer Hsing <homer.xing@intel.com>
2013-04-10Don't always set build type to DEBUGO0.Zhigang Gong1-1/+0
This line was committed by accident. Now remove it. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>
2013-04-10Find GBM/EGL library at build time.Zhigang Gong1-0/+19
We will change to use EGL_KHR_gl_texture_2D_image and GBM library to implement OCL and OGL interoperation. We need to check GBM. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Tested-by: Homer Hsing <homer.xing@intel.com>
2013-04-10backend: Add LLVM stable version supportFeng, Boqun1-1/+1
support current llvm stable version 3.2 modify cmake file to check the version of llvm provided by system or configured by LLVM_INSTALL_DIR, and add a macro define in the format LLVM_<MAJOR><MINOR> according the version, this macro can be used for llvm version-specific code. Signed-off-by: Feng, Boqun <boqun.feng@intel.com> Reviewed-by: Homer Hsing <homer.xing@intel.com>
2013-04-10Refine CMake to check llvm version.Zhigang Gong1-12/+18
This branch need llvm 3.3 or newer version. We need to modify the cmake to check the version. This commit also fixed some minor bugs in the find_packages, and removed those useless files. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-03-29CMake fixup.Zhigang Gong1-3/+7
Add a FindLLVM to handle the llvm package finding function. Fixed the broken CMake files in backend. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2012-08-13Reenabled the CMake build path. It is really imperfect and the build CMakebsegovia1-1/+4
scripts should be cleanly unified later
2012-08-10Cleaned up the code from previous unused dependencies Upate the READMEBenjamin Segovia1-8/+7
2012-08-10tests -> utestsBenjamin Segovia1-1/+1
2012-08-10Added some functionalities for the test frameworkBenjamin Segovia1-1/+1
2012-08-10Moved tests in a separate directoryBenjamin Segovia1-0/+1
2012-08-10Removed Gen6 Stripped out all dependencies from previous compiler Added a ↵Benjamin Segovia1-0/+8
dependency on the new compiler
2012-08-10Ported the code to HSWbsegovia1-3/+10
2012-08-10Silent GCC warnings in release modebsegovia1-2/+5
2012-08-10Removed warningsbsegovia1-1/+0
2012-08-10Started to support Gen7 Implemented new surface state for Gen7bsegovia1-1/+15
2012-08-10Cleaned and simplified CMakeLists file Fixed some warnings with latest GCCbsegovia1-13/+3
2012-08-10Added all miniCL filesbsegovia1-0/+80