[Beignet] [PATCH] Runtime: Fix a mssing llvm version marco for LLVM40+
Pan, Xiuli
xiuli.pan at intel.com
Mon Jun 5 08:24:35 UTC 2017
Ping for review.
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Xiuli Pan
Sent: Friday, May 5, 2017 14:32
To: beignet at lists.freedesktop.org
Cc: Pan, Xiuli <xiuli.pan at intel.com>
Subject: [Beignet] [PATCH] Runtime: Fix a mssing llvm version marco for LLVM40+
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
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list