[Beignet] [PATCH] Runtime: Fix a mssing llvm version marco for LLVM40+
Xiuli Pan
xiuli.pan at intel.com
Fri May 5 06:32:18 UTC 2017
From: Pan Xiuli <xiuli.pan at intel.com>
Found a missing macro that need change to support LLVM40+.
Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
src/cl_extensions.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cl_extensions.c b/src/cl_extensions.c
index a3c71ca..d49d202 100644
--- a/src/cl_extensions.c
+++ b/src/cl_extensions.c
@@ -42,7 +42,7 @@ void check_opt1_extension(cl_extensions_t *extensions)
{
if (id == EXT_ID(khr_icd))
extensions->extensions[id].base.ext_enabled = 1;
-#if LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 5
+#if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 35
if (id == EXT_ID(khr_spir))
extensions->extensions[id].base.ext_enabled = 1;
#endif
--
2.7.4
More information about the Beignet
mailing list