aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGil Pitney <gil.pitney@linaro.org>2015-07-17 22:03:52 +0000
committerGil Pitney <gil.pitney@linaro.org>2015-07-17 22:03:52 +0000
commiteffd93f7e9f906ef718316033eefbeb4e74f61d7 (patch)
treec2a964015930a0105e473ac4af0cbe13f4d52c92
parent8bb3c6b77bd8913dfef0804bc0206d7ae760a0ae (diff)
Added new v1.2 kernel preprocessor macro: "__OPENCL_C_VERSION__=120"
This enables the Khronos v1.2 % test_basic kernel_preprocessor_macros test to pass. Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
-rw-r--r--src/core/compiler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/compiler.cpp b/src/core/compiler.cpp
index c5a28d7..e2fff2c 100644
--- a/src/core/compiler.cpp
+++ b/src/core/compiler.cpp
@@ -260,6 +260,8 @@ int Compiler::compile(const std::string &options,
}
}
+ prep_opts.addMacroDef("__OPENCL_C_VERSION__=120");
+
add_macrodefs_for_supported_opencl_extensions(prep_opts);
// Set invocation options