summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2015-06-15 16:35:00 +0800
committerYang Rong <rong.r.yang@intel.com>2015-06-29 15:53:23 +0800
commit8cfa8620374f86171783659496867391d6bc74f8 (patch)
tree7cc9f752c992474bd3c38e6ba1fcf9e957470498
parente64445f4a54b09db1206d3d07b9c2c454598992d (diff)
Turn on OCL_STRICT_CONFORMANCE as default.
Also update README.md. Signed-off-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--backend/src/backend/program.cpp2
-rw-r--r--docs/Beignet.mdwn6
2 files changed, 4 insertions, 4 deletions
diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
index 5d1ea23a..e4cdeaab 100644
--- a/backend/src/backend/program.cpp
+++ b/backend/src/backend/program.cpp
@@ -113,7 +113,7 @@ namespace gbe {
#ifdef GBE_COMPILER_AVAILABLE
BVAR(OCL_OUTPUT_GEN_IR, false);
- BVAR(OCL_STRICT_CONFORMANCE, false);
+ BVAR(OCL_STRICT_CONFORMANCE, true);
bool Program::buildFromLLVMFile(const char *fileName, const void* module, std::string &error, int optLevel) {
ir::Unit *unit = new ir::Unit();
diff --git a/docs/Beignet.mdwn b/docs/Beignet.mdwn
index 2509ece6..9a2b516a 100644
--- a/docs/Beignet.mdwn
+++ b/docs/Beignet.mdwn
@@ -195,11 +195,11 @@ Known Issues
* Precision issue.
Currently Gen does not provide native support of high precision math functions
required by OpenCL. We provide a software version to achieve high precision,
- which you can turn on through
+ which you can turn off through
- `# export OCL_STRICT_CONFORMANCE=1`.
+ `# export OCL_STRICT_CONFORMANCE=0`.
- But be careful, this would make your CL kernel run a little longer.
+ This would lost some precision but gain performance.
* cl\_khr\_gl\_sharing.
This extension highly depends on mesa support. It seems that mesa would not provide