diff options
author | Pan Xiuli <xiuli.pan@intel.com> | 2017-05-05 14:32:18 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2017-06-09 19:19:09 +0800 |
commit | b8fe58d5e60d98b2958b0a8825cc1be3ec621666 (patch) | |
tree | 7bf68330ff1bb8299bfa356adcbbe7bb21199939 | |
parent | c23b8d7dc68d33b3efb0843a089e99ce39f6817f (diff) |
Runtime: Fix a mssing llvm version marco for LLVM40+
Found a missing macro that need change to support LLVM40+.
Signed-off-by: Pan Xiuli <xiuli.pan@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r-- | src/cl_extensions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_extensions.c b/src/cl_extensions.c index a3c71ca4..d49d202f 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 |