-
Notifications
You must be signed in to change notification settings - Fork 85
Add OCL3.0 support #343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OCL3.0 support #343
Conversation
Signed-off-by: Haonan Yang <haonan.yang@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this also needed for 100/110 branches?
There are OCL 3.0 support on 100/110 branches already. |
I didn't find __opencl_c_fp64 in 100/110 options |
The OCL 3.0 support patch is backported from https://github.com/llvm/llvm-project/blob/main/clang/docs/OpenCLSupport.rst#opencl-c-30-implementation-status, maybe patches on 100/110 have gap with current llvmorg. And PCH patch on 110/120 is enabled recently without CI check, I will have a check if __opencl_c_fp64 is needed on CMake . |
I see, thanks |
It seems that cl_khr_fp64 and __opencl_c_fp64 are defined simultaneously on 100/110 according to https://github.com/intel/opencl-clang/blob/ocl-open-100/patches/clang/0001-OpenCL-3.0-support.patch#L892,L897 and https://github.com/intel/opencl-clang/blob/ocl-open-110/patches/clang/0001-OpenCL-3.0-support.patch#L887,891. But for llvmorg, it need user to make sure cl_khr_fp64 and __opencl_c_fp64 are set to same values according to https://reviews.llvm.org/D96524. |
Signed-off-by: Haonan Yang <haonan.yang@intel.com>
I agree. LGTM |
Signed-off-by: Haonan Yang haonan.yang@intel.com