[Beignet] [PATCH] ignore a clang unsupported building option

Homer Hsing homer.xing at intel.com
Sun Nov 10 18:45:42 PST 2013


IVB does not support float denorm value.
So the building option "-cl-denorms-are-zero" can be safely ignored.

Signed-off-by: Homer Hsing <homer.xing at intel.com>
---
 backend/src/backend/program.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
index c47a36f..6e8c95e 100644
--- a/backend/src/backend/program.cpp
+++ b/backend/src/backend/program.cpp
@@ -476,6 +476,8 @@ namespace gbe {
         continue;
       if(str == "-cl-opt-disable") bOpt = false;
       if(str == "-cl-fast-relaxed-math") bFastMath = true;
+      if(str == "-cl-denorms-are-zero")
+        continue;
       useless.push_back(str);
       args.push_back(str.c_str());
     }
-- 
1.8.3.2



More information about the Beignet mailing list