[Beignet] [PATCH] ignore a clang unsupported building option
Yang, Rong R
rong.r.yang at intel.com
Sun Nov 10 22:23:48 PST 2013
LGTM.
-----Original Message-----
From: beignet-bounces at lists.freedesktop.org [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Homer Hsing
Sent: Monday, November 11, 2013 10:46 AM
To: beignet at lists.freedesktop.org
Subject: [Beignet] [PATCH] ignore a clang unsupported building option
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
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list