GBE: fix bugs when handling -cl-std option.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 11 Sep 2014 01:51:19 +0000 (09:51 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 11 Sep 2014 05:39:48 +0000 (13:39 +0800)
commit7b130877387f612acb96c34ba31f6864b8eb7fda
treee329b8a1af9021aafb8dc538bf925e74d2392d28
parent077337848a738fe0f9cae7b786b64ad8e5a5782d
GBE: fix bugs when handling -cl-std option.

Actually, CLANG does take this option and we should not
filter it out. We also change the default option to create
PCH file to -cl-std=CL1.2. And if the user pass in a CL1.1
we will have to disable PCH.

Another change is that if we are CL1.2, then we should enable
the cl_khr_fp64 by default. As from CL1.2, this extension should
be enabled by default.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
backend/src/backend/program.cpp
backend/src/libocl/CMakeLists.txt