This is an automated email from the ASF dual-hosted git repository. masahi pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push: new 5634a1a17a [CODEGEN][OPENCL] Compatibility for OpenCL version 3.0 (#12938) 5634a1a17a is described below commit 5634a1a17a3d337728bdc375183c9aee71c40b29 Author: Siva <quic_s...@quicinc.com> AuthorDate: Thu Sep 29 15:31:00 2022 +0530 [CODEGEN][OPENCL] Compatibility for OpenCL version 3.0 (#12938) --- src/target/source/codegen_opencl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/target/source/codegen_opencl.cc b/src/target/source/codegen_opencl.cc index e8d47b720b..73a064bc80 100644 --- a/src/target/source/codegen_opencl.cc +++ b/src/target/source/codegen_opencl.cc @@ -139,7 +139,8 @@ std::string CodeGenOpenCL::Finish() { // For now we rely on OpenCL preprocessor directives to utilize the correct behavior // depending on the OpenCL version detected at OpenCL compile time. decl_stream << "#ifdef __OPENCL_VERSION__\n" - << "#if __OPENCL_VERSION__ == CL_VERSION_2_0\n" + << "#if __OPENCL_VERSION__ == CL_VERSION_2_0" + << " || __OPENCL_VERSION__ == CL_VERSION_3_0 \n" << "#define READ_IMAGEH(image, sampler, coord) " << "read_imageh(image, sampler, coord)\n" << "#define READ_IMAGEF(image, sampler, coord) "